-
Notifications
You must be signed in to change notification settings - Fork 1.2k
appengine: updating dependency paths and adding documentation #464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dennwc
merged 1 commit into
cayleygraph:master
from
kenshaw:gaedatastore-update-appengine-dependencies
Aug 26, 2016
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| /appengine | ||
| /docs | ||
| /static | ||
| /templates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # About appengine | ||
|
|
||
| This directory contains a appengine deployable cayley graph instance. | ||
|
|
||
| # Running/testing traditional appengine locally | ||
|
|
||
| Install the latest appengine sdk, and ensure that your local version of go | ||
| matches the same version obtained from `goapp`. | ||
|
|
||
| Note: if you use a more recent version of Go locally, `goapp` get might | ||
| accidentally copy the wrong files from the local `$GOPATH`. | ||
|
|
||
| ```sh | ||
| $ cd $GOPATH/src/github.com/cayleygraph/cayley/appengine | ||
|
|
||
| # check go version | ||
| $ go version | ||
|
|
||
| # check goapp version | ||
| $ goapp version | ||
|
|
||
| # install dependencies | ||
| $ goapp get | ||
|
|
||
| # ensure that goapp can build | ||
| $ goapp build | ||
|
|
||
| # test locally | ||
| $ goapp serve | ||
| ``` | ||
|
|
||
| # Running/testing flexible appengine locally | ||
|
|
||
| The latest appengine flexible environment can be tested instead of the | ||
| traditional environment by doing the following: | ||
|
|
||
| ```sh | ||
| # calls ./sync-assets.sh | ||
| $ go generate | ||
|
|
||
| $ goapp serve app.flexible.yaml | ||
| ``` | ||
|
|
||
| # Deploying to traditional appengine environment | ||
| ```sh | ||
| $ goapp deploy -version 1 -application <MY_PROJECT_ID> | ||
| ``` | ||
|
|
||
| # Deploying to flexible appengine environment | ||
| ```sh | ||
| # install aedeploy if not installed | ||
| $ go get -u google.golang.org/appengine/cmd/aedeploy | ||
|
|
||
| # calls ./sync-assets.sh | ||
| $ go generate | ||
|
|
||
| # deploy | ||
| $ aedeploy gcloud app deploy app.flexible.yaml | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| runtime: go | ||
| vm: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,5 @@ | ||
| application: cayley-test | ||
| version: 1 | ||
| runtime: go | ||
| api_version: go1.6.3 | ||
| api_version: go1 | ||
|
|
||
| handlers: | ||
| - url: /.* | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // +build appenginevm | ||
| package main | ||
|
|
||
| //go:generate ./sync-assets.sh | ||
|
|
||
| import "google.golang.org/appengine" | ||
|
|
||
| func main() { | ||
| appengine.Main() | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| #!/bin/bash | ||
|
|
||
| SRC="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
|
||
| rsync -avP --delete $GOPATH/src/github.com/cayleygraph/cayley/{static,docs,templates} $SRC/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to unpin it from 1.6.3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
appengine only supports go1 in this field. see here: https://cloud.google.com/appengine/docs/go/config/appref