Skip to content

Compare: Organize

New page
Showing with 30 additions and 0 deletions.
  1. +30 −0 Organize.md
30 changes: 30 additions & 0 deletions Organize.md
Expand Up @@ -13,3 +13,33 @@ Your application will grow in no time, so it is better to be prepared from the b
- /web <-- your static css and js files

This way is easier to tell app.Config where everything is so it can find the resources when it needs them. Static folders like media and web can be declared "static" in app.yaml so everything stored in them will be automatically served and cached by appengine.

A standard app.yaml config file looks like this:


application: myappid
version: 1
runtime: go
api_version: 1

handlers:
- url: /favicon.ico
static_files: favicon.ico
upload: favicon.ico

- url: /robots.txt
static_files: robots.txt
upload: robots.txt

- url: /media
static_dir: media

- url: /web
static_dir: web

- url: /admin/.*
script: _go_app
login: admin

- url: /.*
script: _go_app