From 6bdb028e1a0b876175e02cf0f0fbc6fbfe840ac1 Mon Sep 17 00:00:00 2001 From: Bryan Date: Wed, 25 Dec 2013 01:22:22 -0500 Subject: [PATCH] Cleaning up here, beta, and prod env methods --- fabfile.py | 54 ------------------------------------------------------ 1 file changed, 54 deletions(-) diff --git a/fabfile.py b/fabfile.py index 451c3f2..a056e99 100644 --- a/fabfile.py +++ b/fabfile.py @@ -21,60 +21,6 @@ env.usde_csv = '{0}/confs/acceditation.csv'.format(env.code_root) env.use_ssh_config = True -######## Define host(s) -def here(): - """ - Connection information for the local machine - """ - def _custom_local(command): - prefixed_command = '/bin/bash -l -i -c "%s"' % command - return local(prefixed_command) - - # This is required for the same reason as above - env.proj_root = '/var/www/karmaworld' - env.cd = lcd - env.reqs = 'reqs/dev.txt' - env.confs = 'confs/beta' - env.branch = 'beta' - - - -####### Define production host -@task -def prod(): - """ - Connection Information for production machine - """ - - env.user = 'djkarma' - env.hosts = ['karmanotes.org'] - env.proj_root = '/var/www/karmaworld' - env.reqs = 'reqs/prod.txt' - env.confs = 'confs/prod/' - env.branch = 'beta' - env.gunicorn_addr = '127.0.0.1:8000' - -####### Define beta host -@task -def beta(): - """ - Connection Information for beta machine - """ - - env.user = 'djkarma' - env.hosts = ['beta.karmanotes.org'] - env.proj_root = '/var/www/karmaworld' - env.reqs = 'reqs/prod.txt' - env.confs = 'confs/prod/' - env.branch = 'beta' - -######## Run Commands in Virutal Environment -def virtenv_path(): - """ - Builds the virtualenv path. - """ - # not much here now, but maybe useful later. - return env.env_root def virtenv_exec(command): """ -- 2.25.1