Skip to content

Commit e1bc9bf

Browse files
committed
status.json + favicon.svg
1 parent 088a11e commit e1bc9bf

File tree

5 files changed

+328
-9
lines changed

5 files changed

+328
-9
lines changed

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
*~
2+
*.amp.html
3+
.cache
4+
*.class
5+
crash.log
6+
dist/
7+
.DS_Store
8+
*.env
9+
*.gz
10+
.idea/
11+
.jekyll-metadata
12+
node_modules/
13+
*.pyc
14+
.sass-cache/
15+
_site/
16+
tmp/
17+
_tmp/
18+
*.tgz
19+
venv/
20+
.vscode/
21+
*.zip

app.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@ application: regexplanet-go
22
version: 1
33
runtime: go
44
api_version: go1
5-
65
handlers:
76
- url: /favicon.ico
87
static_files: favicon.ico
98
upload: favicon.ico
10-
9+
- url: /favicon.svg
10+
static_files: favicon.svg
11+
upload: favicon.svg
1112
- url: /robots.txt
1213
static_files: robots.txt
1314
upload: robots.txt
14-
1515
- url: /.*
1616
script: _go_app
17+
env_variables:
18+
COMMIT: dev
19+
LASTMOD: dev

deploy.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1-
/usr/local/google_appengine-go/appcfg.py --oauth2 update .
1+
#!/bin/bash
2+
3+
YAML=./www/app.yaml
4+
COMMIT=
5+
yq write --inplace $YAML env_variables.COMMIT $(git rev-parse --short HEAD)
6+
LASTMOD=$(date -u +%Y-%m-%dT%H:%M:%SZ)
7+
yq write --inplace $YAML env_variables.LASTMOD $LASTMOD
8+
9+
/usr/local/google_appengine/appcfg.py --oauth2 update .
10+
11+
#
12+
# restore committed values
13+
#
14+
yq write --inplace $YAML env_variables.COMMIT dev
15+
yq write --inplace $YAML env_variables.LASTMOD dev
216

0 commit comments

Comments
 (0)