Google App Engine

From XennisWiki
Jump to: navigation, search

Google App Engine (often referred to as GAE or simply App Engine) is a web framework and cloud computing platform for developing and hosting web applications in Google-managed data centers. Applications are sandboxed and run across multiple servers. App Engine offers automatic scaling for web applications—as the number of requests increases for an application, App Engine automatically allocates more resources for the web application to handle the additional demand. (Wikipedia)


Deploy an example app

git clone -b phase0-helloworld
cd appengine-php-guestbook
gcloud app create
gcloud app deploy

Open the outputted link.

Flex custom environment (example)

Examples: Google App Engine Custom Runtime Samples

Set the runtime in the app.yml to custom

runtime: custom
env: flex

  document_root: w

  cloud_sql_instances: <project>:<region>:<instance>

Put a Dockerfile next to the app.yml

#RUN apt-get update && \
#    apt-get install imagemagick -y

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]

Deploy the app

gcloud app deploy


Ignore files

Add the files or directories to ignore into the .gcloudignore. The syntax is the same like for Git - Ignore. Example:


See also

External links