From 45cc7b215c33978fd918769101e0e82abb29b3c8 Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Thu, 1 Oct 2015 18:08:00 +0000 Subject: [PATCH] Fixes on deployment --- orchestra/management/commands/setupnginx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchestra/management/commands/setupnginx.py b/orchestra/management/commands/setupnginx.py index 014afff8..bb3aefff 100644 --- a/orchestra/management/commands/setupnginx.py +++ b/orchestra/management/commands/setupnginx.py @@ -242,7 +242,7 @@ class Command(BaseCommand): run('ln -s /etc/nginx/sites-available/%(server_name)s.conf /etc/nginx/sites-enabled/' % context, valid_codes=[0,1], display=True) else: - run('rm /etc/nginx/sites-enabled/default') + run('rm -f /etc/nginx/sites-enabled/default') run('ln -s /etc/nginx/sites-available/%(project_name)s.conf /etc/nginx/sites-enabled/' % context, valid_codes=[0,1], display=True) run('ln -s /etc/uwsgi/apps-available/%(project_name)s.ini /etc/uwsgi/apps-enabled/' % context,