This commit is contained in:
Kenneth Reitz
2011-07-06 08:18:22 -04:00
parent 9fd5cd3ca1
commit e8f18dd7b4
Vendored
+38
View File
@@ -0,0 +1,38 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from fabric.api import *
CMD_TEMPLATE = '{0}'
def _run(cmd):
local(CMD_TEMPLATE.format(cmd))
def prod():
"""Runs all command on the production instance."""
global CMD_TEMPLATE
CMD_TEMPLATE = 'epio run_command {0}'
def deploy():
"""Deploys the application"""
prod()
local('epio upload')
def clear_db():
"""Clears the Redis database."""
_run('./manage.py clear_db')
def sync():
"""Imports everything from various services."""
_run('./manage.py sync')