Commit e409ade7c2ee12cb84c2ce46a1e31d40f6c68c96
1 parent
741d6928
Exists in
master
and in
39 other branches
Update fabfile for centos
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
fabfile.py
@@ -140,7 +140,7 @@ def collectstatic(): | @@ -140,7 +140,7 @@ def collectstatic(): | ||
140 | 140 | ||
141 | 141 | ||
142 | def create_local_settings(): | 142 | def create_local_settings(): |
143 | - with cd(SETTINGS_PATH), settings(user=env.superuser): | 143 | + with cd(SETTINGS_PATH): |
144 | env_local_settings = 'local_settings-{}.py'.format(env.environment) | 144 | env_local_settings = 'local_settings-{}.py'.format(env.environment) |
145 | 145 | ||
146 | if not exists('local_settings.py') and exists(env_local_settings): | 146 | if not exists('local_settings.py') and exists(env_local_settings): |
@@ -247,13 +247,13 @@ def ssh_keygen(): | @@ -247,13 +247,13 @@ def ssh_keygen(): | ||
247 | def deploy(noprovision=False): | 247 | def deploy(noprovision=False): |
248 | """Deploy and run the new code (master branch)""" | 248 | """Deploy and run the new code (master branch)""" |
249 | 249 | ||
250 | - fix_path() | ||
251 | - | ||
252 | if noprovision is False: | 250 | if noprovision is False: |
253 | provision() | 251 | provision() |
254 | else: | 252 | else: |
255 | update_code() | 253 | update_code() |
256 | 254 | ||
255 | + fix_path() | ||
256 | + | ||
257 | install_solr() | 257 | install_solr() |
258 | 258 | ||
259 | mkvirtualenv() | 259 | mkvirtualenv() |