Remove dynamic stackname
This commit is contained in:
Vendored
+1
-5
@@ -1,19 +1,15 @@
|
|||||||
from fabric.api import env, lcd, local, abort
|
from fabric.api import env, lcd, local, abort
|
||||||
|
|
||||||
def basic_environment_settings():
|
|
||||||
env.stack_name = 'api'
|
|
||||||
|
|
||||||
def staging():
|
def staging():
|
||||||
basic_environment_settings()
|
|
||||||
env.environment = 'staging'
|
env.environment = 'staging'
|
||||||
|
|
||||||
def production():
|
def production():
|
||||||
basic_environment_settings()
|
|
||||||
env.environment = 'production'
|
env.environment = 'production'
|
||||||
|
|
||||||
def cloudformation_update():
|
def cloudformation_update():
|
||||||
with lcd('./cloudformation/'):
|
with lcd('./cloudformation/'):
|
||||||
local('make update-stack ENVIRONMENT_NAME={0} STACK_NAME={1}'.format(env.environment, env.stack_name))
|
local('make update-stack ENVIRONMENT_NAME={0}'.format(env.environment))
|
||||||
|
|
||||||
def deploy():
|
def deploy():
|
||||||
if env.environment != 'staging':
|
if env.environment != 'staging':
|
||||||
|
|||||||
Reference in New Issue
Block a user