Skip to content

Commit 6a693c0

Browse files
committed
fix: run docker with pm2 runtime
1 parent 29d64b5 commit 6a693c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ RUN yarn
99
RUN npm run build
1010

1111
# EXPOSE 7000
12-
CMD ["npm", "run", "start"]
12+
CMD ["npm", "run", "serve:production-docker"]

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"build:babel": "npm run before-build && babel src --out-dir dist --extensions \".ts\",\".js\"",
1818
"serve:staging": "NODE_ENV=staging node ./dist/bin/server.js",
1919
"serve:production": "NODE_ENV=production node ./dist/bin/server.js",
20+
"serve:production-docker": "NODE_ENV=production pm2-runtime ./dist/bin/server.js",
2021
"db:migrate": "npx sequelize-cli db:migrate",
2122
"db:migrate:fresh": "npx sequelize-cli db:migrate:undo:all && npm run db:migrate",
2223
"db:seed": "npx sequelize-cli db:seed:all",

0 commit comments

Comments
 (0)