FreeMusicNinja / api.freemusic.ninja

Django-powered API for Free Music Ninja
http://api.freemusic.ninja/
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

Allow configuration file instead of environment variables #4

Closed treyhunner closed 9 years ago

treyhunner commented 9 years ago

This will fix issues while using sudo or gunicorn.

From FreeMusicNinja/freemusic.ninja#9

macro1 commented 9 years ago

I think we should stay with environment variables.

Relevant to gunicorn: http://docs.gunicorn.org/en/18.0/configure.html#raw-env

treyhunner commented 9 years ago

@macro1 I'm curently doing that but whenever I add a new environment variable I have to add a new -e flag so it's kind of awkward.

macro1 commented 9 years ago

Solved with the gunicorn configuration file for now... We'll revisit when we look more at deployment.