Skip to content

Commit b32c34f

Browse files
authored
remove references to goapp now that it's deprecated, use gcloud instead (#24)
Change-Id: I0f933f095176960ccc33876b06d53cd32841ad32
1 parent 801fb2f commit b32c34f

File tree

4 files changed

+25
-18
lines changed

4 files changed

+25
-18
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To go through this you will need the following:
1818
1. You have installed the [Go Programming Language][1].
1919
1. You have set up a `GOPATH` by following the [How to Write Go Code][9] tutorial.
2020
1. You are somewhat familiar with the basics of Go. (The [Go Tour][2] is a pretty good place to start)
21-
1. You have a Google account and you have installed the [Go SDK][3].
21+
1. You have a Google account and you have installed the [Google Cloud SDK][3].
2222

2323
## Contents
2424

@@ -70,5 +70,5 @@ code that happens to be owned by Google.
7070

7171
[1]: https://golang.org
7272
[2]: https://tour.golang.org
73-
[3]: https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Go
73+
[3]: https://cloud.google.com/sdk/downloads
7474
[9]: https://golang.org/doc/code.html#Organization

events/step0/README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,25 @@ The goal for this step is to define the two entry points to your web application
44

55
You can try running before you start coding to see the current behavior.
66

7-
$ goapp serve
7+
$ dev_appserver.py .
88

99
Once you've implemented this, visiting `localhost:8080` should display a list of conferences,
1010
and clicking "New Event" should not do anything.
1111

12-
You can also deploy it.
12+
In order to deploy you'll need to first install and configure [gcloud](https://cloud.google.com/sdk/downloads):
1313

14-
$ goapp deploy --version=step0 --application=your-project-id
14+
$ gcloud init
1515

16-
And then visit https://step0.your-project-id.appspot.com.
16+
_Note_: You do not need to set up any Google Compute Engine zone.
17+
18+
Then simply run
19+
20+
$ gcloud app deploy --version=step0 app.yaml
21+
22+
And then visit https://step0.your-project-id.appspot.com or running
23+
24+
$ gcloud app browse --version=step0
25+
26+
This will display a basic Events page but also an alert will be alerted. That's fine, for now.
1727

1828
Once you're done, let's go back to the [instructions](../../section05/README.md#congratulations).

section04/README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ handlers:
139139
## Run the application locally
140140
141141
Once we have the `main.go` and `app.yaml` files in a directory we can run the
142-
application locally by going to the directory and executing the `goapp` tool
142+
application locally by going to the directory and executing the `dev_appserver.py` tool
143143
that comes with the Go SDK for App Engine.
144144

145145
```bash
146-
$ goapp serve .
146+
$ dev_appserver.py .
147147
```
148148

149149
You will see many logs, check for errors, and if everything works fine you will
@@ -168,27 +168,24 @@ project.
168168

169169
1. Visit https://console.developers.google.com and log in with your credentials.
170170
1. Click on `create a project` and choose a name and project ID
171+
1. Run `gcloud init` and choose your recently created project. No need to set Compute zones.
171172

172173
That's it! You can now deploy your code to the Google App Engine servers!
173174

174175
Modify the `app.yaml` changing the `application` line to contain the project ID
175176
of the project you just created and deploy it running:
176177

177178
```bash
178-
$ goapp deploy --version=1 --application=your-project-id .
179+
$ gcloud app deploy app.yaml
179180
```
180181

181-
The first time you run `goapp` it will open a browser and go through the
182-
authentication and authorization process, this will happen only once.
183-
184-
If for some reason you need to do this again you can remove the auth info:
182+
Once this succeeds your app is available on https://your-project-id.appspot.com,
183+
or running:
185184

186185
```bash
187-
$ rm -f ~/.appcfg_oauth2_tokens
186+
$ gcloud app browse
188187
```
189188

190-
Once this succeeds your app is available on https://your-project-id.appspot.com.
191-
192189
### Exercise Deploy to App Engine
193190

194191
Follow the instructions above and deploy the code you've been working on so far

section05/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ We will do the latter as we'll add more Go code later on.
5757
Try running your application again:
5858

5959
```bash
60-
$ goapp serve .
60+
$ dev_appserver.py .
6161
```
6262

6363
Or deploying it:
6464

6565
```bash
66-
$ goapp deploy --application=your-project-id --version=1 .
66+
$ gcloud app deploy app.yaml
6767
```
6868

6969
And verify that the output matches your expectations:

0 commit comments

Comments
 (0)