danielflower / app-runner

Self-hosted platform as a service for Java, Node, Clojure, Scala, DotNet, Python and golang apps. Push to a git repo to deploy apps.
MIT License
70 stars 44 forks source link

Possible to set environment variables per app? #6

Closed githistory closed 7 years ago

githistory commented 7 years ago

For example, if I'm treating app-runner as prod and want my app to run in "prod" mode, can I set a ENV=prod env var?

danielflower commented 7 years ago

There is an env var you can check to see if you are running in app runner: the APP_ENV environment variable will be "prod".