Exemplo n.º 1
0
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()
Exemplo n.º 2
0
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()
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
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)