mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
ep.io fabfile
This commit is contained in:
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
#!/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')
|
||||
migrate()
|
||||
|
||||
Reference in New Issue
Block a user