File tree Expand file tree Collapse file tree 7 files changed +43
-28
lines changed Expand file tree Collapse file tree 7 files changed +43
-28
lines changed Original file line number Diff line number Diff line change 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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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-js
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
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 99 "express" : " ^4.16.0"
1010 },
1111 "engines" : {
12- "node" : " 8.11.3 "
12+ "node" : " 10 "
1313 },
1414 "repository" : {
1515 "url" : " https://www.github.com/fileformat/regexplanet-js"
You can’t perform that action at this time.
0 commit comments