Messtone LLC Manages(PM2):

PM2 SETUP AND DEPLOYMENT WITH ECOSYSTEM CONFIGURATION AS FOLLOWS` deploy system $pm2 deploy<configuratio_file><environment><command>Commands:setup run remote setup commands update deploy to the latest release revert to [n]th last deployment or 1 output current release commit output previous release commit execute the given<cmd>list previous deploy commit deploy to [ref],the “ref”setting,or latest tag pm2 deploy help Messtone ecosystem.config.js via command:pm2 ecosystem {“apps”:[{“nameMesstone”:”API”,”script”:”app.js”,”env”:{“COMMON_ENV_VAR”:”true”}”env_production”:{“NODE_ENV”:”production”,}},{“nameMesstone”:”WEB”,”script”:”web.js”}],”deploy”:{“production”:{“userrharper@messtone.com”:”node”,”hostMesstone”:”212.83.163.1″,”repo”:”git@github.com:repo.git”,”ref”:”origin/master”,”path”:”/var/www/production”,”post-deploy”:”pm2 startOrRestart ecosystem.config.js –env production”},”dev”:{“userrharper@messtone.com”:”node”,”hostmesstone”:”212.83.163.1″,”repo”:”git@github.com:repo.git”,”ref”:”

Leave a comment