|
|
|
@ -96,6 +96,15 @@ def put_configs(): |
|
|
|
settings_conf) |
|
|
|
settings_conf) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def newsletters_media(): |
|
|
|
|
|
|
|
with cd(join(REMOTE_HOME_DIR, 'media')): |
|
|
|
|
|
|
|
run('mkdir -p newsletter') |
|
|
|
|
|
|
|
put( |
|
|
|
|
|
|
|
join(LOCAL_HOME_DIR, 'media/newsletter'), |
|
|
|
|
|
|
|
join(REMOTE_HOME_DIR, 'media') |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def call_state(state, only=None): |
|
|
|
def call_state(state, only=None): |
|
|
|
if only is not None and only in services: |
|
|
|
if only is not None and only in services: |
|
|
|
run('service {only} {state}'.format(only=only, state=state)) |
|
|
|
run('service {only} {state}'.format(only=only, state=state)) |
|
|
|
|