Skip to content

Commit 1d35b63

Browse files
committed
Small changes
1 parent bee5c6b commit 1d35b63

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

fabfile.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def commit():
2121

2222
def pull():
2323
with cd(env.directory):
24-
run("git fetch origin")
24+
run("https_proxy=http://proxy.hcg.gr:8080 git fetch origin")
2525
run("git merge origin/master")
2626
print("fetch / merge ok")
2727

@@ -31,12 +31,16 @@ def work():
3131
with cd(env.directory):
3232
requirements_txt = "requirements/" + env.env + ".txt"
3333
if os.stat(requirements_txt).st_size > 0:
34-
virtualenv("pip install -r {0}".format(requirements_txt))
34+
virtualenv(
35+
"https_proxy=http://proxy.hcg.gr:8080 pip install -r {0}".format(
36+
requirements_txt
37+
)
38+
)
3539
virtualenv("python manage.py migrate")
3640
virtualenv("python manage.py update_permissions")
3741
virtualenv("python manage.py collectstatic --noinput")
3842
if env.env == "prod":
39-
virtualenv("python manage.py compres")
43+
virtualenv("python manage.py compress")
4044

4145

4246
def touch_wsgi():

0 commit comments

Comments
 (0)