-
Notifications
You must be signed in to change notification settings - Fork 1
/
up_frontend.sh
25 lines (22 loc) · 691 Bytes
/
up_frontend.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
############################
# Magento Script
# by DigitalStartup.co.uk
#
# version 1.0.1
############################
set -e
read -p "Are you sure? (y/n) " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo -e "\e[33;1mStarting Frontend Script\e[0m"
echo -e "\e[33;1mClearing Static Files\e[0m"
rm -rf var/view_preprocessed pub/static/frontend/*
echo -e "\e[33;1mDeploying Static Content\e[0m"
bin/magento setup:static-content:deploy --area frontend -f
echo -e "\e[33;1mCleaning and Flushing Cache\e[0m"
bin/magento cache:clean
bin/magento cache:flush
echo -e "\e[33;1mFrontend Script COMPLETE\e[0m"
fi