Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Static root page on Google AppEngine

I'm trying to set up a static landing page for a google appengine application. However I get 404 when I go to the root of the site. It works fine locally just doesn't work when I deploy it. The app.html page work so its just the landing page thats not working.

Here's something from app.yaml

handlers:
- url: /rest/.*
  script: main.py
  login: required

- url: /js
  static_dir: static/js

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

- url: /app.html
  static_files: static/app.html
  upload: static/app.html
  login: required

- url: /.*
  script: main.py
like image 422
Morten Avatar asked Dec 11 '25 09:12

Morten


1 Answers

Change those backslashes to forward-slashes.
Should be:

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

Backslashes are escape characters.
So you were specifying a path that doesn't exist.

like image 185
mechanical_meat Avatar answered Dec 12 '25 23:12

mechanical_meat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!