Skip to content

Instantly share code, notes, and snippets.

@mitechie
Created July 12, 2011 16:41
Show Gist options
  • Save mitechie/1078383 to your computer and use it in GitHub Desktop.
Save mitechie/1078383 to your computer and use it in GitHub Desktop.
from fabric.api import env
# Globals
env.project_name = 'proj'
env.packagedir = 'http://packageserver.com/packages/'
env.new_version_files = ['setup.py',
'docs/source/conf.py',
]
env.new_version_files = ['{project_name}/__init__.py'.format(**env),
'docs/conf.py',
'setup.py', ]
# Environments
def prod():
"Use the production server environment settings"
env.hosts = ['localhost', ]
env.venv_path = '/home/rharding/src/staples'
env.app_path = '{venv_path}/staples_app'.format(**env)
env.python_path = '{venv_path}/bin/python'.format(**env)
env.migrate_path = '{python_path} {app_path}/samigrate.py'.format(**env)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment