def web_server_restart(): """ Restarts the web server. """ if fabric.api.env.conf['SERVER_TYPE'] == 'apache': apache_restart() elif fabric.api.env.conf['SERVER_TYPE'] == 'nginx': nginx_restart() uwsgi_restart()
def web_server_touch(stage=''): """ Touches the web server causing reload. """ if fabric.api.env.conf['SERVER_TYPE'] == 'apache': apache_touch_wsgi() elif fabric.api.env.conf['SERVER_TYPE'] == 'nginx': uwsgi_restart(stage=stage)