from os.path import abspath, dirname, exists, join
from os.path import abspath, dirname, exists, join
from fabric.contrib import files
from fabric.tasks import Task, execute
from fabric.contrib import files
from fabric.tasks import Task, execute
run('mkdir -p %(app_path)s' % env, pty=True)
run('%(virtualenv)s %(app_path)s/ve' % env, pty=True)
run('mkdir -p %(app_path)s' % env, pty=True)
run('%(virtualenv)s %(app_path)s/ve' % env, pty=True)
run('cd %(app_path)s/releases; ln -sfT . current; ln -sfT . previous' % env, pty=True)
upload_samples()
print "Fill out db details in localsettings.py and run deploy."
run('cd %(app_path)s/releases; ln -sfT . current; ln -sfT . previous' % env, pty=True)
upload_samples()
print "Fill out db details in localsettings.py and run deploy."
print '>>> symlink current release'
require('release', provided_by=[deploy])
require('app_path')
print '>>> symlink current release'
require('release', provided_by=[deploy])
require('app_path')
run('rm releases/previous; mv releases/current releases/previous')
run('ln -s %(release)s releases/current' % env)
run('rm releases/previous; mv releases/current releases/previous')
run('ln -s %(release)s releases/current' % env)