joshhunt
joshhunt

Reputation: 5335

Google App Engine: Development only route in app.yaml

Is there a way to create a route that is recognised only when using a local development server? I'm wanting to create a static_dir route in app.yaml but I only need it for testing.

Upvotes: 0

Views: 57

Answers (2)

Andrei Volgin
Andrei Volgin

Reputation: 41089

Instead of adding/removing a static route in app.yaml, create a script/servlet that processes these requests - or ignores them if they come from the production domain.

Upvotes: 1

Edward Fung
Edward Fung

Reputation: 426

I don't think there is a way to do that. The closest solution I can imagine is to use login: admin but I am not it works with static_dir. The documentation is here.

If it does not work, you might need to check the environment in your request handler. Please take a look at the answer here

Upvotes: 0

Related Questions