Skip to content

Commit

Permalink
feat: user pm2
Browse files Browse the repository at this point in the history
  • Loading branch information
pociej committed Apr 8, 2024
1 parent 6485d00 commit a984fbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ FROM node:20-bullseye

RUN apt-get update && apt-get install -y vim

RUN npm install -g pnpm serve

RUN npm install -g pnpm serve pm2
# Set the working directory
WORKDIR /app
COPY . /app
Expand All @@ -17,4 +16,3 @@ RUN mkdir /app/temp

RUN pnpm install
RUN pnpm build:all
RUN npm install pm2 -g
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "concurrently -k \"tsc -w\" \"nodemon --env-file=.env.local ./dist/index.js\"",
"build": "tsc",
"start": "node ./dist/index.js"
"start": "pm2 start ./dist/index.js"
},
"type": "module",
"keywords": [],
Expand Down

0 comments on commit a984fbf

Please sign in to comment.