# This hook builds pixelplanet after a push, and deploys it
# 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)
# Update messages will get sent via the Webhooks to Discord
#
# To set up a server to use this, you have to go through the building steps manually first.
# This hook just builds the canvas, it does not install new yarn/npm packages if needed. So this has to be done manually first
# Also keep in mind that running a dev-canvas and a life canvas independently together on one server needs two redis installations.
# tl;dr: Don't just copy that script, try to know how that setup works first
#
#discord webhook for dev canvas
WEBHOOK='https://discordapp.com/api/webhooks/'
#discord webhook for production canvas
PWEBHOOK='https://discordapp.com/api/webhooks/'
#folder for building the canvas (the git repository will get checkout there and the canvas will get buil thtere)