I've got a GAE application in Go using martini. I need to be able to set the MARTINI_ENV
environment variable to tell martini that it should initialize with production settings. According to the Python docs you can set environment variables in the app.yaml. I didn't see any mention of this in the Go docs, but I'm guessing it should work the same.
I need to be able to set the MARTINI_ENV
environment variable to production
, but I only want to do that when I'm actually in production (i.e. !appengine.IsDevAppServer()
). Is there any way to tell app.yaml
to only do this in running on the non-dev server?