ecosystem.config.js 805 B

123456789101112131415161718192021222324252627282930313233
  1. // PM2 configuration: https://nuxtjs.org/deployments/pm2/
  2. module.exports = {
  3. apps: [
  4. {
  5. name: 'app',
  6. exec_mode: 'cluster',
  7. instances: '1',
  8. script: 'yarn',
  9. args: 'start'
  10. }
  11. ],
  12. // Deployment Configuration
  13. deploy: {
  14. prod: {
  15. user: 'exploitation',
  16. host: [''],
  17. ref: 'origin/master',
  18. repo: 'git@gitlab.2iopenservice.com:opentalent/admin.git',
  19. path: '/var/opentalent/git/app',
  20. 'post-deploy': 'yarn install && yarn build && pm2 start app'
  21. },
  22. preprod: {
  23. user: 'exploitation',
  24. host: ['preprod-v2'],
  25. ref: 'origin/master',
  26. repo: 'git@gitlab.2iopenservice.com:opentalent/admin.git',
  27. path: '/var/opentalent/git/app',
  28. 'post-deploy': 'yarn install && yarn build && pm2 start app'
  29. }
  30. }
  31. }