rename post-receive script

This commit is contained in:
HF 2022-06-11 23:44:25 +02:00
parent 5fa493cb17
commit c829c2417b

View File

@ -1,5 +1,5 @@
#!/bin/bash
# This hook builds pixelplanet after a push, and deploys it
# This hook builds pixelplanet after a push, and deploys it, it should be ron post-receive
# If it is the production branch, it will deploy it on the life system, and other branch will get deployed to the dev-canvas (a second canvas that is running on the server)
#
# To set up a server to use this, you have to go through the building steps manually first.
@ -64,6 +64,7 @@ do
pm2 start ecosystem-backup.yml
pm2 start ecosystem-captchas.yml
else
branch="dev"
echo "---UPDATING REPO ON DEV SERVER---"
pm2 stop ppfun-server-dev
pm2 stop ppfun-captchas-dev