Update fabfile for osmfr

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

2
fabfile.py vendored
View file

@ -226,6 +226,7 @@ def dj(command):
""" """
Run a Django manage.py command on the server. Run a Django manage.py command on the server.
""" """
with cd(env.project_dir):
run_as_umap('{virtualenv_dir}/bin/python {project_dir}/manage.py {dj_command} ' run_as_umap('{virtualenv_dir}/bin/python {project_dir}/manage.py {dj_command} '
'--settings {project_conf}'.format(dj_command=command, **env)) '--settings {project_conf}'.format(dj_command=command, **env))
@ -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')