Skip to content

Commit

Permalink
fix : pm2
Browse files Browse the repository at this point in the history
  • Loading branch information
kangjuhyup committed Jan 22, 2025
1 parent 65e8bc4 commit a0a0873
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ COPY --from=builder /usr/src/app/packages/server/public packages/server/public
COPY --from=builder /usr/src/app/packages/server/ecosystem.config.js packages/server/ecosystem.config.js

RUN yarn workspaces focus server --production
RUN yarn global add pm2
RUN npm install -g pm2

EXPOSE 3003

Expand Down
28 changes: 16 additions & 12 deletions packages/server/ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
module.exports = {
apps: [{
name: 'invite-service',
script: 'dist/main.js',
instances: 'max',
exec_mode: 'cluster',
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production'
}
}]
apps: [
{
name: 'invite-service',
script: 'dist/main.js',
instances: 'max',
exec_mode: 'cluster',
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
},
merge_logs: true,
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
},
],
};

0 comments on commit a0a0873

Please sign in to comment.