Skip to content

Commit 541f33a

Browse files
committed
chore: implicit app config for npm run serve
1 parent 72b06f9 commit 541f33a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ Easily use this template to quick start a production ready nodejs project templa
66

77
```shell
88
# do this to start server
9-
cp ./src/a.json ./src/.app.json
10-
export APP_CONFIG=./src/.app.json
9+
cp ./src/a.json ./src/app.json
1110
npm install
1211
npm run serve
1312

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"bumpPatchVersion": "npm --no-git-tag-version version patch",
3333
"bumpPatchVersionWithGitTag": "npm version patch",
3434
"release": "npm run bumpPatchVersionWithGitTag",
35-
"serve": "node src/index.js",
36-
"serve:dev": "nodemon src/index.js"
35+
"serve": "APP_CONFIG=./src/app.json node src/index.js",
36+
"serve:dev": "APP_CONFIG=./src/app.json nodemon src/index.js"
3737
},
3838
"files": [
3939
"src"

0 commit comments

Comments
 (0)