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 | 140 | |
141 | 141 | |
142 | 142 | def create_local_settings(): |
143 | - with cd(SETTINGS_PATH), settings(user=env.superuser): | |
143 | + with cd(SETTINGS_PATH): | |
144 | 144 | env_local_settings = 'local_settings-{}.py'.format(env.environment) |
145 | 145 | |
146 | 146 | if not exists('local_settings.py') and exists(env_local_settings): |
... | ... | @@ -247,13 +247,13 @@ def ssh_keygen(): |
247 | 247 | def deploy(noprovision=False): |
248 | 248 | """Deploy and run the new code (master branch)""" |
249 | 249 | |
250 | - fix_path() | |
251 | - | |
252 | 250 | if noprovision is False: |
253 | 251 | provision() |
254 | 252 | else: |
255 | 253 | update_code() |
256 | 254 | |
255 | + fix_path() | |
256 | + | |
257 | 257 | install_solr() |
258 | 258 | |
259 | 259 | mkvirtualenv() | ... | ... |