Start the default server.
dev_appserver.py app.yaml
dev_appserver.py --clear_datastore=yes app.yaml
Sometimes you need to kill some processes on a given port:
lsof -P | grep '8080' | awk '{print $2}' | xargs kill -9
http://--.appspot.com/user/<USERNAME>/json/?id_token=XXXX
Example
curl -X GET https://mpcs51033-2017-autumn-photos.appspot.com/user/default/json/?id_token=XXXX
http://--.appspot.com/user/<USERNAME>/web/?id_token=XXXX
Example
curl -X GET https://mpcs51033-2017-autumn-photos.appspot.com/user/andrew/web/?id_token=XXXX
http://--.appspot.com/user/<USERNAME>/post/?id_token=XXXX
Example
curl -X POST -H "Content-Type: multipart/form-data" -F caption='curl' -F "image=@IMG_0255.jpg" https://mpcs51033-2017-autumn-photos.appspot.com/post/lolakitty/?id_token=XXXX
http://--.appspot.com//image/<IMAGE-KEY>/delete//?id_token=XXXX
Example
curl -X POST http://localhost:8080/email_task/
The following updates a server that is using a single default service defined in
app.yaml file. Note the --project
option for you own project id and the --version
. If you don't specify a version, App Engine will assign one for you.
gcloud app deploy app.yaml index.yaml --project mpcs51033-2017-autumn-photos -V some_version
See it in action in a browser.
gcloud app browse --project mpcs51033-2017-autumn-photos
Deploy the cron jobs.
gcloud app deploy cron.yaml
Deploy the task queues that will do the work.
gcloud app deploy queue.yaml