ecosystem.tpl 489 B

12345678910111213141516171819202122
  1. module.exports = {
  2. apps : [{
  3. script: 'index.js',
  4. watch: '.'
  5. }, {
  6. script: './service-worker/',
  7. watch: ['./service-worker']
  8. }],
  9. deploy : {
  10. production : {
  11. user : 'SSH_USERNAME',
  12. host : 'SSH_HOSTMACHINE',
  13. ref : 'origin/master',
  14. repo : 'GIT_REPOSITORY',
  15. path : 'DESTINATION_PATH',
  16. 'pre-deploy-local': '',
  17. 'post-deploy' : 'npm install && pm2 reload ecosystem.config.js --env production',
  18. 'pre-setup': ''
  19. }
  20. }
  21. };