Skip to content

Commit

Permalink
Add prpl-server setup
Browse files Browse the repository at this point in the history
  • Loading branch information
abdonrd committed Jan 4, 2018
1 parent e19207b commit 40628a3
Show file tree
Hide file tree
Showing 7 changed files with 821 additions and 12 deletions.
11 changes: 0 additions & 11 deletions firebase.json

This file was deleted.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"lint": "yarn run lint:eslint && yarn run lint:stylelint",
"test:integration": "yarn run build",
"test": "yarn run test:integration",
"build": "polymer build"
"build": "polymer build",
"build:prpl-server-copy-files": "cp prpl-server/app.yaml prpl-server/package.json prpl-server/yarn.lock build/",
"build:prpl-server": "yarn run build && yarn run build:prpl-server-copy-files"
},
"engines": {
"node": ">=6.0"
Expand Down
7 changes: 7 additions & 0 deletions polymer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@
"lint": {
"rules": ["polymer-2"]
},
"autoBasePath": true,
"builds": [
{
"preset": "es5-bundled"
},
{
"preset": "es6-bundled"
},
{
"preset": "es6-unbundled"
}
]
}
5 changes: 5 additions & 0 deletions prpl-server/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"env": {
"node": true
}
}
4 changes: 4 additions & 0 deletions prpl-server/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
runtime: nodejs
env: flex
automatic_scaling:
min_num_instances: 1
11 changes: 11 additions & 0 deletions prpl-server/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"dependencies": {
"prpl-server": "^1.0.0"
},
"scripts": {
"start": "prpl-server --host 0.0.0.0 --https-redirect --bot-proxy https://render-tron.appspot.com/render"
},
"engines": {
"node": ">=6.0.0"
}
}
Loading

0 comments on commit 40628a3

Please sign in to comment.