Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

talksapp: use Go 1.9, update bot.html URLs #590

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions talksapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Development Environment Setup
- `$ sh setup.sh`
- Run the server using the `goapp serve prod.yaml` command.
- Run the tests using the `goapp test` command.
- Deploy to production using the `gcloud app --project=go-talks deploy --no-promote prod.yaml` command.
6 changes: 2 additions & 4 deletions talksapp/app.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
application: go-talks
version: 1
runtime: go
api_version: go1.8
api_version: go1.9

handlers:
- url: /robots\.txt
Expand All @@ -24,7 +22,7 @@ handlers:
secure: always

env_variables:
CONTACT_EMAIL: '' # set contact email for /-/bot.html
CONTACT_EMAIL: '' # set contact email for /bot.html
GITHUB_CLIENT_ID: '' # used to increase rate-limits; see https://github.com/settings/applications/new
GITHUB_CLIENT_SECRET: '' # used to increase rate-limits; see https://github.com/settings/applications/new
GITHUB_TOKEN: '' # personal token used for authentication; see https://github.com/settings/tokens/new
2 changes: 1 addition & 1 deletion talksapp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func httpClient(r *http.Request) *http.Client {
GithubClientID: githubClientID,
GithubClientSecret: githubClientSecret,
Base: &urlfetch.Transport{Context: ctx},
UserAgent: fmt.Sprintf("%s (+http://%s/-/bot)", appengine.AppID(ctx), r.Host),
UserAgent: fmt.Sprintf("%s (+https://%s/bot.html)", appengine.AppID(ctx), r.Host),
},
}
}
Expand Down