visualvidya
visualvidya

Reputation: 43

To host a static (HTML) website on Google App Engine, what should be in the app.yaml file?

Can I use this for uploading HTML pages?

app.yaml contents:

application: visualvidya
version: 1
runtime: python
api_version: 1

handlers:
- url: /(.*\.(gif|png|jpg|ico|js|css))
  static_files: \1
  upload: (.*\.(gif|png|jpg|ico|js|css))

Upvotes: 3

Views: 3690

Answers (1)

Darshan Rivka Whittle
Darshan Rivka Whittle

Reputation: 34031

A minimal handlers section for a static site might look something like this:

handlers:
- url: /
  static_files: static/index.html
  upload: static/index.html

- url: /
  static_dir: static

Every site is different, so as Sean pointed out in the comments, you'll want to consult the documentation.

Upvotes: 6

Related Questions