From 1e9fdbf37e6c258927e53ba48702aed04ebe983d Mon Sep 17 00:00:00 2001 From: Bryan Date: Fri, 27 Dec 2013 01:17:15 -0500 Subject: [PATCH] fixing one typo and making string formatting consistent. --- fabfile.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/fabfile.py b/fabfile.py index a664ed4..ef39c4a 100644 --- a/fabfile.py +++ b/fabfile.py @@ -72,7 +72,7 @@ def collect_static(): Collect static files (if AWS config. present, push to S3) """ - virtenv_exec('%s/manage.py collectstatic --noinput' % env.code_root ) + virtenv_exec('{0}/manage.py collectstatic --noinput'.format(env.code_root)) ####### Run Dev Server @task @@ -81,7 +81,7 @@ def dev_server(): Runs the built-in django webserver """ - virtenv_exec('%s/manage.py runserver' % env.code_root) + virtenv_exec('{0}/manage.py runserver'.format(env.code_root)) ####### Create Virtual Environment @@ -121,8 +121,7 @@ def restart_supervisord(): """ Restarts supervisord, also making sure to load in new config data. """ - virtenv_exec('supervisorctl -c {0} update; supervisorctl -c {0} restart all -'.format(env.supervisor_conf)) + virtenv_exec('supervisorctl -c {0} update; supervisorctl -c {0} restart all'.format(env.supervisor_conf)) def supervisorctl(action, process): @@ -190,7 +189,7 @@ def update_reqs(): ####### Pull new code @task def update_code(): - virtenv_exec('cd %s; git pull' % env.proj_root ) + virtenv_exec('cd {0}; git pull'.format(env.code_root)) def backup(): """ -- 2.25.1