• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.gitignoreH A D01-Dec-201836 54

README.mdH A D01-Dec-20181.2 KiB6041

app.flexible.yamlH A D01-Dec-201821 32

app.yamlH A D01-Dec-201869 75

appengine.goH A D01-Dec-20183.3 KiB13395

cayley_appengine.cfgH A D01-Dec-201884 76

main.goH A D01-Dec-2018141 125

sync-assets.shH A D01-Dec-2018165 62

README.md

1# About appengine
2
3This directory contains a appengine deployable cayley graph instance.
4
5# Running/testing traditional appengine locally
6
7Install the latest appengine sdk, and ensure that your local version of go
8matches the same version obtained from `goapp`.
9
10Note: if you use a more recent version of Go locally, `goapp` get might
11accidentally copy the wrong files from the local `$GOPATH`.
12
13```sh
14$ cd $GOPATH/src/github.com/cayleygraph/cayley/appengine
15
16# check go version
17$ go version
18
19# check goapp version
20$ goapp version
21
22# install dependencies
23$ goapp get
24
25# ensure that goapp can build
26$ goapp build
27
28# test locally
29$ goapp serve
30```
31
32# Running/testing flexible appengine locally
33
34The latest appengine flexible environment can be tested instead of the
35traditional environment by doing the following:
36
37```sh
38# calls ./sync-assets.sh
39$ go generate
40
41$ goapp serve app.flexible.yaml
42```
43
44# Deploying to traditional appengine environment
45```sh
46$ goapp deploy -version 1 -application <MY_PROJECT_ID>
47```
48
49# Deploying to flexible appengine environment
50```sh
51# install aedeploy if not installed
52$ go get -u google.golang.org/appengine/cmd/aedeploy
53
54# calls ./sync-assets.sh
55$ go generate
56
57# deploy
58$ aedeploy gcloud app deploy app.flexible.yaml
59```
60