Update fabfile for osmfr

This commit is contained in:
Yohan Boniface 2013-11-25 00:00:03 +01:00
parent 03cf69516f
commit eb73ebf640

6
fabfile.py vendored
View file

@ -226,8 +226,9 @@ def dj(command):
""" """
Run a Django manage.py command on the server. Run a Django manage.py command on the server.
""" """
run_as_umap('{virtualenv_dir}/bin/python {project_dir}/manage.py {dj_command} ' with cd(env.project_dir):
'--settings {project_conf}'.format(dj_command=command, **env)) run_as_umap('{virtualenv_dir}/bin/python {project_dir}/manage.py {dj_command} '
'--settings {project_conf}'.format(dj_command=command, **env))
def collect_remote_statics(): def collect_remote_statics():
@ -270,4 +271,5 @@ def collect_remote_statics():
with cd(subdir): with cd(subdir):
run_as_umap('git checkout {0}'.format(ref)) run_as_umap('git checkout {0}'.format(ref))
if subdir == "leaflet": if subdir == "leaflet":
run_as_umap('npm install')
run_as_umap('jake build') run_as_umap('jake build')