/
usr
/
lib
/
node_modules
/
pm2
/
lib
/
templates
/
/usr/lib/node_modules/pm2/lib/templates
mkdir
upload
Name
Size
Mode
Actions
Dockerfiles/
-
0755
rm
init-scripts/
-
0755
rm
logrotate.d/
-
0755
rm
sample-apps/
-
0755
rm
ecosystem-simple.tpl
83
0644
edit
dl
rm
ecosystem.tpl
489
0644
edit
dl
rm
Edit:
/usr/lib/node_modules/pm2/lib/templates/ecosystem.tpl
(489B)
module.exports = { apps : [{ script: 'index.js', watch: '.' }, { script: './service-worker/', watch: ['./service-worker'] }], deploy : { production : { user : 'SSH_USERNAME', host : 'SSH_HOSTMACHINE', ref : 'origin/master', repo : 'GIT_REPOSITORY', path : 'DESTINATION_PATH', 'pre-deploy-local': '', 'post-deploy' : 'npm install && pm2 reload ecosystem.config.js --env production', 'pre-setup': '' } } };
Save
cmd:
run