Permalink
Browse files
Added deployment variables for now
- Loading branch information
Showing
with
4,248 additions
and
32 deletions.
-
+2
−32
.gitignore
-
+3
−0
index.js
-
+3
−0
now.js
-
+18
−0
now.json
-
+4,180
−0
package-lock.json
-
+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); |
|
|
} |
|
|
@@ -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" |
|
|
} |
|
|
] |
|
|
} |
Oops, something went wrong.
This comment has been minimized.
now bot commented onMay 20, 2019
ce9060d
Successfully aliased the URL https://lightkeeper-jk053eukv.now.sh to the following aliases.