Skip to content

Commit 3aa8c9c

Browse files
add pm2 for running in cluster
1 parent 1fe6089 commit 3aa8c9c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ EXPOSE 3030
1414
ENV NODE_ENV=production
1515
ENV API_PORT=3030
1616

17+
yarn global add pm2
1718
# start the application in a autohealing cluster
1819
#CMD NODE_ENV=production pm2 start server/index.js -n api -i 0 --attach
1920
# as we have issues with pm2 currently in conjunction with nuxt, we use the standard approach here

0 commit comments

Comments
 (0)