from app_container import *
# Format for the 'bind' string we'll be making later, sticking the site name +
# timestamp in the wildcard part. Used here for generating the gunicorn cmd,
"""Given a copy of Fabric's state in site_env, configure and return the
gunicorn cmd line needed to run the site"""
site_config = site_env['config']
- gconfig = copy.copy(GUNICORN_DEFAULTS)
- gconfig = site_config.get('gunicorn', GUNICORN_DEFAULTS)
+ # Make a copy here because we're going to be modifying this dict, and we
+ # don't want to mess it up for later functions, or later runs of this
+ # function if we're going to deploy to more than one host.
+ gconfig = copy.copy(site_config.get('gunicorn', GUNICORN_DEFAULTS))
# Default to using a unix socket for nginx->gunicorn
if 'deployment' in site_env: