^
This commit is contained in:
parent
5a4a5d3e90
commit
2d0fbf9634
2 changed files with 10 additions and 10 deletions
|
@ -38,8 +38,16 @@ done
|
||||||
|
|
||||||
|
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
# Setup the environment variables for Saleor API
|
# Clone the git and setup the environment variables for Saleor API & Dashboard install
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
|
# Make sure we're in the user's home directory
|
||||||
|
cd $HD
|
||||||
|
# Clone the Saleor Dashboard Git repository
|
||||||
|
if [ -f "$HD/saleor-dashboard" ]; then
|
||||||
|
sudo rm -R $HD/saleor-dashboard
|
||||||
|
fi
|
||||||
|
git clone https://github.com/mirumee/saleor-dashboard.git
|
||||||
|
wait
|
||||||
# Build the API URL
|
# Build the API URL
|
||||||
API_URL="http://$API_HOST:$API_PORT/$APIURI/"
|
API_URL="http://$API_HOST:$API_PORT/$APIURI/"
|
||||||
# Write the production .env file from template.env
|
# Write the production .env file from template.env
|
||||||
|
@ -61,14 +69,6 @@ fi
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
# Build Saleor Dashboard for production
|
# Build Saleor Dashboard for production
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
# Make sure we're in the user's home directory
|
|
||||||
cd $HD
|
|
||||||
# Clone the Saleor Dashboard Git repository
|
|
||||||
if [ -f "$HD/saleor-dashboard" ]; then
|
|
||||||
sudo rm -R $HD/saleor-dashboard
|
|
||||||
fi
|
|
||||||
git clone https://github.com/mirumee/saleor-dashboard.git
|
|
||||||
wait
|
|
||||||
# Make sure we're in the project root directory
|
# Make sure we're in the project root directory
|
||||||
cd saleor-dashboard
|
cd saleor-dashboard
|
||||||
# Was the -v (version) option used?
|
# Was the -v (version) option used?
|
||||||
|
|
|
@ -18,7 +18,7 @@ disable-write-exception = true
|
||||||
# Modifications
|
# Modifications
|
||||||
socket = {hd}/saleor/saleor.sock
|
socket = {hd}/saleor/saleor.sock
|
||||||
# socket permissions
|
# socket permissions
|
||||||
chown-socket = ubuntu:www-data
|
chown-socket = {un}:www-data
|
||||||
chmod-socket = 660
|
chmod-socket = 660
|
||||||
strict = true
|
strict = true
|
||||||
need-app = true
|
need-app = true
|
||||||
|
|
Loading…
Reference in a new issue