alakajam-team / alakajam

Website powering the Alakajam! game making community
https://alakajam.com/
Other
28 stars 13 forks source link

Set up an automatic deployment step from the master CI #637

Open mkalam-alami opened 3 years ago

mkalam-alami commented 3 years ago

If the previous steps succeed, have an additional step rsync the build output to the server.

On the server itself, set up pm2 to automatically restart Alakajam if changes are detected in the dist/ folder.

EDIT: Except it needs to run npm install if the package.json has changed... And a git pull too because static files are not in the dist folder...

See also: https://pm2.keymetrics.io/docs/usage/deployment/