Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load env variables locally #164

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ yarn test:integration

### Start a bot

After registering and configuring the bot environment, we can run it. We use
[Nodemon](https://nodemon.io/) for hot-reloading, the `probot` package
automatically parses the relevant `.env` values.
After registering and configuring the bot environment, we can run it.

```sh
$ yarn start
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"lint": "npx eslint --quiet '{*,**/*}.{js,ts}' && npx prettier --check '{*,**/*}.json' && yarn typecheck",
"papi": "papi generate",
"postinstall": "yarn papi",
"dev": "concurrently \"tsc -w\" \"node --watch --enable-source-maps dist/src/bot.js\"",
"start": "node --enable-source-maps dist/src/bot.js",
"dev": "concurrently \"tsc -w\" \"node --env-file=.env --watch --enable-source-maps dist/src/bot.js\"",
"start": "node --env-file=.env --enable-source-maps dist/src/bot.js",
"test": "jest",
"test:e2e": "jest -c jest.e2e.config.js",
"test:integration": "jest -c jest.integration.config.js",
Expand Down
Loading