Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
minor fixes for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Mar 19, 2017
1 parent a5e2dfc commit da8b2c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _activate():

def virtualenv(command):
with cd(_project_root()):
sudo(_activate() + ' && ' + command, user=env.ok_user)
sudo("export HOME=/home/" + env.ok_user + " && " + _activate() + ' && ' + command, user=env.ok_user)


# web server stuff
Expand Down Expand Up @@ -121,7 +121,6 @@ def _install_requirements():
'cd .. && pip install -r ' +
env.project_dir + '/requirements.txt && cd ' + _project_root())


@roles('all')
def all_upgrade_system():
sudo('apt-get update')
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ unicodecsv==0.14.1
django-fastsitemaps==0.2
subprocess32==3.2.7

-e 'git://github.com/hasadna/knesset-data-python.git@c39ad5b1cfdace3321292cf37e146ad099dc58b3#egg=knesset-data'
-e 'git://github.com/hasadna/knesset-data-datapackage.git@v1.1.0#egg=knesset-datapackage'
-e 'git://github.com/hasadna/knesset-data-django.git@v1.0.0#egg=knesset-data-django'
-e git://github.com/hasadna/knesset-data-python.git@c39ad5b1cfdace3321292cf37e146ad099dc58b3#egg=knesset-data
-e git://github.com/hasadna/knesset-data-datapackage.git@v1.1.0#egg=knesset-datapackage
-e git://github.com/hasadna/knesset-data-django.git@v1.0.0#egg=knesset-data-django

0 comments on commit da8b2c7

Please sign in to comment.