Skip to content

Commit 84dcfc2

Browse files
make new version work
I've spend some time trying to figure out why it didn't work for me. The reason is that Google updated the system. Google's changes: - use main() instead of init() - specify go version in app.yaml - most other declarations in app.yaml now invalid - pass project name and version as flags in the gcloud command - python install not needed anymore Plus, you need ListenAndServe of course! ;) I can confirm that it now works with the changes I made to the files.
1 parent 2bdef48 commit 84dcfc2

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

026_appengine-deploy/README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,18 @@ https://domains.google/#/
44

55
# deploying to [Google Cloud](https://cloud.google.com/)
66
- [install google appengine](https://cloud.google.com/appengine/docs/go/download)
7-
- [make sure python is installed VERSION 2.7.x](https://www.python.org/downloads/release/python-2712/)
8-
- python -V
97
- configure environment PATH variables
108
- google cloud developer console
119
- create a project
1210
- get the project ID
13-
- update the app.yaml file with your project ID
11+
- set your go version in the app.yaml file
1412

1513
```
16-
application: temp-137512
17-
version: 1
18-
runtime: go
19-
api_version: go1
20-
21-
handlers:
22-
- url: /.*
23-
script: _go_app
14+
runtime: go113
2415
```
2516
- deploy to that project
2617
```
27-
appcfg.py -A <YOUR_PROJECT_ID> -V v1 update .
18+
gcloud app deploy app.yaml --project=<YOUR_PROJECT_ID> -v 1
2819
```
2920
- view your project
3021
- http://YOUR_PROJECT_ID.appspot.com/

0 commit comments

Comments
 (0)