Added an extra check to the fab file.
This commit is contained in:
parent
dff0b67ccd
commit
825faebdbe
3
fabfile.py
vendored
3
fabfile.py
vendored
@ -64,7 +64,8 @@ def migrate():
|
|||||||
|
|
||||||
@task
|
@task
|
||||||
def init_supervisor():
|
def init_supervisor():
|
||||||
if exists('/etc/supervisor/conf.d/'):
|
if (exists('/etc/supervisor/conf.d/') and
|
||||||
|
not exists('/etc/supervisor/conf.d/{}.conf'.format(env.project))):
|
||||||
sudo('cp {}/supervisor.conf /etc/supervisor/conf.d/{}.conf'.format(
|
sudo('cp {}/supervisor.conf /etc/supervisor/conf.d/{}.conf'.format(
|
||||||
env.repo_path, env.project))
|
env.repo_path, env.project))
|
||||||
sudo('supervisorctl reread')
|
sudo('supervisorctl reread')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user