Quickstart
- run
gcloud init
- open terminal to project directory and run
npm start
- open another terminal to same dir and run
gulp watch
- in package.json's deploy command, edit
{projectname}
- don't forget to
npm i
- go to localhost:8080/ to see your app
- go to localhost:8000/ to see ndb interface
note: updating files in template/ will not auto reload, only files being watched by gulp watch
will
If building SPA
- delete templates
- create index.html in src/
change:
-
main.py in BaseHandler, the session name
-
base.html header info (title, etc)
-
package.json project name, git repo, etc
Killing proc on port:
sudo fuser -n tcp sudo kill -9
ACL
https://cloud.google.com/storage/docs/access-control/create-manage-lists#defaultobjects
https://cloud.google.com/storage/docs/gsutil/commands/defacl
gsutil defacl ch -u AllUsers:R gs://example-bucket
will change future uploads to be publicly visible
Libraries
Libraries supported by GAE must be listed in app.yaml
Other libraries must be installed to 'lib' folder with
pip2.7 install --target=lib passlib