4 ms·
I have to disagree strongly with your point 6. I'm working on a large app at the moment where all hostnames are the same regardless of environment, and the onl
by glenjamin 13y ago
I have to disagree strongly with your point 6.
I'm working on a large app at the moment where all hostnames are the same regardless of environment, and the only way to switch envs is via a proxy. It's a massive pain.
Keep environments mostly similar, but always make sure you can configure locations of the app itself and its various external resources separately on staging, test and development platforms.
- falsedan 13y ago> I'm working on a large app at the moment where all hostnames are the same regardless of environment, and the only way to switch envs is via a proxy. It's a massive pain. One of our projects works like this, it sucks. For per-host app location, we set X-HTTP-Script-Name in the nginx location block and extracted it in WSGI middleware like http://flask.pocoo.org/snippets/35/ http://flask.pocoo.org/snippets/35/ Everything else is hardcoded to use 'http://localhost/service_name/foo http://localhost/service_name/foo & nginx proxies to the appropriate resource. Obviously, this doesn't work for non-HTTP services!