Permalink
Browse files

document environment variables

  • Loading branch information...
zeke committed Apr 25, 2018
1 parent 20d301f commit 5c2f2cf7d0f0e29e8f395fc71215a87dc0d0c6d7
Showing with 26 additions and 0 deletions.
  1. +4 −0 .env.example
  2. +2 −0 .gitignore
  3. +2 −0 bin/update-server.js
  4. +2 −0 index.js
  5. +13 −0 package-lock.json
  6. +1 −0 package.json
  7. +2 −0 test/index.js
@@ -0,0 +1,4 @@
GH_TOKEN=
REDIS_URL=
PORT=
CACHE_TTL=
@@ -1,3 +1,5 @@
.env
.npmrc
node_modules
.nyc_output
example/dist
@@ -1,5 +1,7 @@
#!/usr/bin/env node
require('dotenv-safe').load()
'use strict'
process.title = 'update-server'
@@ -1,5 +1,7 @@
'use strict'
require('dotenv-safe').load()
const http = require('http')
const fetch = require('node-fetch')
const semver = require('semver')

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -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",
@@ -1,5 +1,7 @@
'use strict'
require('dotenv-safe').load()
const { test } = require('tap')
const fetch = require('node-fetch')
const Updates = require('..')

0 comments on commit 5c2f2cf

Please sign in to comment.