fix deploy script
This commit is contained in:
parent
39f4a549f4
commit
967222c19e
1 changed files with 7 additions and 7 deletions
14
deploy.sh
14
deploy.sh
|
@ -8,6 +8,12 @@ npm run build
|
||||||
if [[ $1 == "production" ]]
|
if [[ $1 == "production" ]]
|
||||||
then
|
then
|
||||||
echo "DEPLOYING TO PRODUCTION!"
|
echo "DEPLOYING TO PRODUCTION!"
|
||||||
|
rm -rf /home/pietervdvn/git/pietervdvn.github.io/MapComplete/*
|
||||||
|
cp -r dist/* /home/pietervdvn/git/pietervdvn.github.io/MapComplete/
|
||||||
|
cd /home/pietervdvn/git/pietervdvn.github.io/MapComplete/
|
||||||
|
elif [[ $1 == "groen" ]]
|
||||||
|
then
|
||||||
|
echo "DEPLOYING TO BUURTNATUUR"
|
||||||
mv /home/pietervdvn/git/buurtnatuur.github.io/CNAME /home/pietervdvn/git/
|
mv /home/pietervdvn/git/buurtnatuur.github.io/CNAME /home/pietervdvn/git/
|
||||||
mv /home/pietervdvn/git/buurtnatuur.github.io/.git /home/pietervdvn/git/
|
mv /home/pietervdvn/git/buurtnatuur.github.io/.git /home/pietervdvn/git/
|
||||||
rm -rf /home/pietervdvn/git/buurtnatuur.github.io/*
|
rm -rf /home/pietervdvn/git/buurtnatuur.github.io/*
|
||||||
|
@ -15,12 +21,6 @@ then
|
||||||
mv /home/pietervdvn/git/CNAME /home/pietervdvn/git/buurtnatuur.github.io/
|
mv /home/pietervdvn/git/CNAME /home/pietervdvn/git/buurtnatuur.github.io/
|
||||||
mv /home/pietervdvn/git/.git /home/pietervdvn/git/buurtnatuur.github.io/
|
mv /home/pietervdvn/git/.git /home/pietervdvn/git/buurtnatuur.github.io/
|
||||||
cd /home/pietervdvn/git/buurtnatuur.github.io/
|
cd /home/pietervdvn/git/buurtnatuur.github.io/
|
||||||
elif [[ $1 == "groen" ]]
|
|
||||||
then
|
|
||||||
echo "DEPLOYING TO BUURTNATUUR"
|
|
||||||
rm -rf /home/pietervdvn/git/pietervdvn.github.io/MapComplete/*
|
|
||||||
cp -r dist/* /home/pietervdvn/git/pietervdvn.github.io/MapComplete/
|
|
||||||
cd /home/pietervdvn/git/pietervdvn.github.io/MapComplete/
|
|
||||||
else
|
else
|
||||||
echo "Testversion deploy"
|
echo "Testversion deploy"
|
||||||
rm -rf /home/pietervdvn/git/pietervdvn.github.io/Staging/*
|
rm -rf /home/pietervdvn/git/pietervdvn.github.io/Staging/*
|
||||||
|
@ -34,4 +34,4 @@ git push
|
||||||
cd -
|
cd -
|
||||||
./clean.sh
|
./clean.sh
|
||||||
|
|
||||||
echo "DEPLOYED $1"
|
echo "DEPLOYED $1"
|
||||||
|
|
Loading…
Reference in a new issue