Skip to content
Permalink
Browse files

Added deployment variables for now

  • Loading branch information
lfre committed May 20, 2019
1 parent 8e9ca23 commit ce9060dcd5c51cc8338b43c8027f688d57e4577e
Showing with 4,248 additions and 32 deletions.
  1. +2 −32 .gitignore
  2. +3 −0 index.js
  3. +3 −0 now.js
  4. +18 −0 now.json
  5. +4,180 −0 package-lock.json
  6. +42 −0 package.json
@@ -2,8 +2,6 @@
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
@@ -20,42 +18,14 @@ coverage
# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next
# private app key
*.pem
@@ -0,0 +1,3 @@
module.exports = app => {
console.log(app);
}
3 now.js
@@ -0,0 +1,3 @@
const { serverless } = require('@chadfawcett/probot-serverless-now')
const app = require('./')
module.exports = serverless(app)
@@ -3,5 +3,23 @@
"name": "lightkeeper",
"alias": [
"lightkeeper.alfre.do"
],
"env": {
"APP_ID": "@app_id",
"NODE_ENV": "production",
"PRIVATE_KEY": "@private_key",
"WEBHOOK_SECRET": "@webhook_secret"
},
"builds": [
{
"src": "now.js",
"use": "@now/node"
}
],
"routes": [
{
"src": "/*",
"dest": "/now.js"
}
]
}

1 comment on commit ce9060d

@now

This comment has been minimized.

Please sign in to comment.
You can’t perform that action at this time.