Skip to content

Commit

Permalink
Update for 7 years of changes to app engine
Browse files Browse the repository at this point in the history
* Application name, version no longer required.
* gcloud app deploy looks for any main in the dir, doesn't need to be in a
  subdir.
  • Loading branch information
thebigbad committed Feb 17, 2019
1 parent 1f929fc commit 35dcbf8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
14 changes: 3 additions & 11 deletions README.md
Expand Up @@ -4,7 +4,6 @@ Setup
1. Get your [dev environment](https://developers.google.com/appengine/docs/go/gettingstarted/devenvironment) setup for GAE.
2. Clone this repository, cd into the directory.
3. ```cp app.yaml.example app.yaml```
4. Edit app.yaml with the app name you plan to use.

Running locally
===
Expand All @@ -19,21 +18,14 @@ password for changing the answer is "bees".

To change the answer to "no", simply visit larry:bees@localhost:8080/no

Running tests
===

1. Install go.
2. ```$ cd basicauth/ && go test```

Running on appspot
===

1. Follow the [registration instuctions](https://developers.google.com/appengine/docs/go/gettingstarted/uploading) for GAE.
2. Make sure that the app id in app.yaml matches you new app id.
3. Push the app: ```$ appcfg.py .```
4. Seed the server with starting data. I'd suggest a different password than
2. Push the app: ```$ appcfg.py .```
3. Seed the server with starting data. I'd suggest a different password than
"bees": ```$ curl http://moe:$PASSWORD@$APPID.appspot.com/yes```
5. Visit $APPID.appspot.com in your browser to behold your new novelty server.
4. Visit $APPID.appspot.com in your browser to behold your new novelty server.

Sample Benchmarks
===
Expand Down
2 changes: 0 additions & 2 deletions app.yaml.example
@@ -1,5 +1,3 @@
application: novelty
version: 3
runtime: go
api_version: go1

Expand Down
2 changes: 1 addition & 1 deletion novelty/novelty.go → novelty.go
@@ -1,4 +1,4 @@
package novelty
package main

import (
"appengine"
Expand Down

0 comments on commit 35dcbf8

Please sign in to comment.