Skip to content

Commit

Permalink
document environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
zeke committed Apr 25, 2018
1 parent 20d301f commit 5c2f2cf
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
GH_TOKEN=
REDIS_URL=
PORT=
CACHE_TTL=
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.env
.npmrc
node_modules
.nyc_output
example/dist
Expand Down
2 changes: 2 additions & 0 deletions bin/update-server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env node

require('dotenv-safe').load()

'use strict'

process.title = 'update-server'
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict'

require('dotenv-safe').load()

const http = require('http')
const fetch = require('node-fetch')
const semver = require('semver')
Expand Down
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"test": "prettier-standard '**/*.js' && standard && NODE_ENV=test nyc tap test/*.js"
},
"dependencies": {
"dotenv-safe": "^5.0.1",
"ms": "^2.1.1",
"node-fetch": "^2.1.1",
"redis": "^2.8.0",
Expand Down
2 changes: 2 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict'

require('dotenv-safe').load()

const { test } = require('tap')
const fetch = require('node-fetch')
const Updates = require('..')
Expand Down

0 comments on commit 5c2f2cf

Please sign in to comment.