Open mkalam-alami opened 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...
npm install
See also: https://pm2.keymetrics.io/docs/usage/deployment/
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...