Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #22 from threefoldtech/refactor_prod_start
Browse files Browse the repository at this point in the history
feat: use different command to start in prod
  • Loading branch information
robvanmieghem authored Feb 7, 2023
2 parents 6815fa1 + 4954a5c commit b568dfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ COPY . .

EXPOSE 3000

CMD [ "yarn", "start" ]
CMD [ "yarn", "start-prod" ]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "index.js",
"scripts": {
"start": "nodemon ./bin/www | pino-pretty",
"start-prod": "node ./bin/www",
"debug": "node --nolazy --inspect-brk=9229 ./bin/www",
"test": "standard"
},
Expand Down Expand Up @@ -35,4 +36,4 @@
"pino-pretty": "^5.0.2",
"standard": "^16.0.3"
}
}
}

0 comments on commit b568dfa

Please sign in to comment.