Skip to content

Commit

Permalink
CHORE: add start:pm2
Browse files Browse the repository at this point in the history
  • Loading branch information
sw6820 committed Jan 20, 2025
1 parent 3d5229c commit 83a444e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \

# Start the application using Node.js
# CMD ["node", "dist/main.js"]
CMD ["pm2-runtime", "start", "/usr/src/chat-service/ecosystem.config.js"]
CMD ["pm2-runtime", "start:pm2", "/usr/src/chat-service/ecosystem.config.js"]
# ENTRYPOINT ["/usr/src/chat-service/workflows/scripts/deploy.sh"]
# CMD ["npm", "run", "start:prod"]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"build": "rimraf dist && tsc -p tsconfig.build.json",
"format": "prettier --write 'src/**/*.ts' 'tests/**/*.ts'",
"start": "nest start",
"start:pm2": "node dist/main.js",
"start:dev": "NODE_ENV=dev nest start --watch",
"start:local": "NODE_ENV=local nest start --watch",
"start:debug": "nest start --debug --watch",
Expand Down

0 comments on commit 83a444e

Please sign in to comment.