Skip to content

Commit

Permalink
Add dotenv template and load envFile in VS Code launch.json for quick…
Browse files Browse the repository at this point in the history
… loading REST API configuration
  • Loading branch information
seansica committed Aug 30, 2023
1 parent 8017090 commit bbd794e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\bin\\www",
"outputCapture": "std"
"program": "${workspaceFolder}/bin/www",
"outputCapture": "std",
"envFile": "${workspaceFolder}/.env"
}
]
}
5 changes: 5 additions & 0 deletions template.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
AUTHN_MECHANISM=anonymous
DATABASE_URL=mongodb://localhost/attack-workspace
JSON_CONFIG_PATH=/some/path/to/rest-api-service-config.json
PORT=8080
LOG_LEVEL=debug

0 comments on commit bbd794e

Please sign in to comment.