Skip to content

Commit

Permalink
fix: 🐛 fix heroku and build script
Browse files Browse the repository at this point in the history
  • Loading branch information
yeukfei02 committed Apr 20, 2022
1 parent 9ffdaed commit 0f69618
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: yarn run production
web: yarn run start:prod
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ api url: <https://dummy-api-nestjs.herokuapp.com/>
$ yarn run start:dev

// run in production
$ yarn run production
$ yarn run start:prod

// lint code
$ yarn run lint
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build",
"heroku-postbuild": "yarn run build",
"heroku-postbuild": "tsc -p tsconfig.build.json",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/src/main",
"production": "yarn run build && yarn run start:prod",
"start:prod": "node dist/src/main.js",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"test": "jest",
Expand Down

0 comments on commit 0f69618

Please sign in to comment.