^
This commit is contained in:
parent
2d0fbf9634
commit
3a76674095
1 changed files with 5 additions and 5 deletions
|
@ -46,7 +46,7 @@ cd $HD
|
||||||
if [ -f "$HD/saleor-dashboard" ]; then
|
if [ -f "$HD/saleor-dashboard" ]; then
|
||||||
sudo rm -R $HD/saleor-dashboard
|
sudo rm -R $HD/saleor-dashboard
|
||||||
fi
|
fi
|
||||||
git clone https://github.com/mirumee/saleor-dashboard.git
|
sudo -u $UN git clone https://github.com/mirumee/saleor-dashboard.git
|
||||||
wait
|
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/"
|
||||||
|
@ -72,13 +72,13 @@ fi
|
||||||
# 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?
|
||||||
if [ "vOPT" = "true" ]; then
|
if [ "vOPT" = "true" || $VERSION = "" ]; then
|
||||||
git checkout $VERSION
|
sudo -u $UN git checkout $VERSION
|
||||||
fi
|
fi
|
||||||
# Install dependancies
|
# Install dependancies
|
||||||
npm i
|
sudo -u $UN npm i
|
||||||
wait
|
wait
|
||||||
npm run build
|
sudo -u $UN npm run build
|
||||||
wait
|
wait
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue