Author: vjrj_ Date: 2011-06-01 01:42:50 +0200 (Wed, 01 Jun 2011) New Revision: 71 Modified: fabfile.py Log: Modified: fabfile.py =================================================================== --- fabfile.py 2011-05-31 22:35:31 UTC (rev 70) +++ fabfile.py 2011-05-31 23:42:50 UTC (rev 71) @@ -1,6 +1,6 @@ from fabric.api import * -env.hosts = ['scm.ourproject.org'] +#env.hosts = ['scm.ourproject.org'] dev_prefix= '/home/groups/tts-dev/htdocs/' prod_prefix= '/var/www/takethesquare.net/htdocs/' @@ -38,6 +38,7 @@ run("chgrp -R %s %s%s" % (group, prefix, images_path)) run("chgrp -R %s %s%s" % (group, prefix, theme_path)) +@hosts('scm.ourproject.org') def deploy(): run('echo Deploying with user: "%(user)s"' % env) # change_log() @@ -45,11 +46,12 @@ svn_update(dev_prefix) fix_perms(dev_prefix, 'tts-dev') +@hosts('takethesquare.net') def deployprod(): run('echo Deploying with user: "%(user)s"' % env) # change_log() prepare_deploy() - svn_update(prod_prefix) + # this doesn't work because of www-data perms: svn_update(prod_prefix) local("echo You should do 'chmod -R www-data:www-data %s'" % (prod_prefix))
participants (1)
-
Vicente J. Ruiz Jurado