Skip to content Skip to sidebar Skip to footer

Relative Paths To File Issue In Deploying An App

I have a polymer app that I'm deploying to Google App Engine. It is step-2 of the beginner polymer tutorial. I keep getting 404s and 500 errors for some resources, specifically the

Solution 1:

Add the following to your app.yaml:

handlers:
- url: /components
  static_dir: components
- url: /images
  static_dir: images

It's worth noting that these handlers should be added after your url: .* declaration, otherwise it will catch all and never go further down, so in this simple example, the complete declaration will look like this:

handlers:
- url: /components
  static_dir: components
- url: /images
  static_dir: images
- url: .*
  script: main.py

I will also recommend using the webapp2 framework instead, it's recommended for new applications and way better!


Post a Comment for "Relative Paths To File Issue In Deploying An App"