@task
def update_service_confs():
    """Update supervisor configuration."""
    require('environment')
    if not env.vagrant:
        upload_newrelic_conf()
    upload_supervisor_app_conf(app_name=u'gunicorn')
    upload_supervisor_app_conf(app_name=u'group')
    nginx.upload_nginx_site_conf(site_name=u'%(project)s-%(environment)s.conf' % env)
    # Restart services to pickup changes
    supervisor_command('reload')
dataset/ETHPy150Open python/raspberryio/fabfile.py/update_service_confs/original