From 9d3aec2b5be8d31170d71f5118d4c279d8137c8f Mon Sep 17 00:00:00 2001 From: Lucian Ursu Date: Thu, 28 Feb 2013 21:25:13 +0200 Subject: [PATCH] Changed the deploy task to only deploy new changes and not handle initial setup. --- fabfile.py | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/fabfile.py b/fabfile.py index a172d9c..ada9fed 100755 --- a/fabfile.py +++ b/fabfile.py @@ -3,7 +3,7 @@ import os from contextlib import contextmanager as _contextmanager -from fabric.api import cd, env, prefix, run, settings, task, local +from fabric.api import cd, env, prefix, run, task, local ########## GLOBALS @@ -242,20 +242,11 @@ def restart_gunicorn(): @task def deploy(): """ - Creates or updates the project, runs migrations, installs dependencies. + Deploys the latest changes """ - first_deploy = False - with settings(warn_only=True): - if env.run('test -d %s' % env.proj_dir).failed: - # first_deploy var is for initial deploy information - first_deploy = True - clone() - if env.run('test -d $WORKON_HOME/%s' % env.virtualenv).failed: - make_virtualenv() - update_code() update_reqs() syncdb() - #TODO: run gunicorn - #restart_uwsgi() + manage_static() + restart_supervisord() ########## END COMMANDS -- 2.25.1