Skip to content

Commit edba7a2

Browse files
committed
switched hosting to AppEngine
1 parent 2ab81ed commit edba7a2

File tree

7 files changed

+43
-15
lines changed

7 files changed

+43
-15
lines changed

.gcloudignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This file specifies files that are *not* uploaded to Google Cloud Platform
2+
# using gcloud. It follows the same syntax as .gitignore, with the addition of
3+
# "#!include" directives (which insert the entries of the given .gitignore-style
4+
# file at that point).
5+
#
6+
# For more information, run:
7+
# $ gcloud topic gcloudignore
8+
#
9+
.gcloudignore
10+
# If you would like to upload your .git directory, .gitignore file or files
11+
# from your .gitignore file, remove the corresponding line
12+
# below:
13+
.git
14+
.gitignore
15+
16+
# Node.js dependencies:
17+
node_modules/
18+
19+
# my stuff
20+
LICENSE.txt
21+
README.md
22+
*.sh

Procfile

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

app.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"automatic_scaling": {
3+
"max_instances": 1,
4+
"min_instances": 1
5+
},
6+
"env_variables": {
7+
"GOOGLE_ANALYTICS": "NOT_SET"
8+
},
9+
"runtime": "nodejs10"
10+
}

deploy.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#!/bin/bash
22
#
3-
# deploy the js backend to Zeit
3+
# deploy to gcloud
44
#
55

6-
set -o errexit
7-
set -o pipefail
8-
set -o nounset
6+
cat app.yaml \
7+
| jq --sort-keys ".env_variables.LASTMOD|=\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"|.env_variables.COMMIT|=\"$(git rev-parse --short HEAD)\"" \
8+
| ex -sc 'wq!app.yaml' /dev/stdin
99

10-
now \
11-
--env COMMIT=$(git rev-parse --short HEAD) \
12-
--env LASTMOD=$(date -u +%Y-%m-%dT%H:%M:%SZ) \
13-
&& now alias \
14-
&& now rm $(cat ./now.json | jq '.name' --raw-output) --safe --yes
10+
gcloud config set project regexplanet-xregexp
11+
gcloud app deploy
12+
13+
cat app.yaml \
14+
| jq 'del(.env_variables.LASTMOD)|del(.env_variables.COMMIT)' \
15+
| ex -sc 'wq!app.yaml' /dev/stdin

now.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"express": "^4.15.4"
1010
},
1111
"engines": {
12-
"node": "8.11.3"
12+
"node": "10"
1313
},
1414
"repository": {
1515
"url": "https://www.github.com/fileformat/regexplanet-xregexp"

0 commit comments

Comments
 (0)