Commit e8bd1134 authored by Marco Mariani's avatar Marco Mariani

abilian: patch extranet repo

parent a13690c7
diff --git a/etc/deps.txt b/etc/deps.txt
index b8fb0ec..c136c2f 100644
--- a/etc/deps.txt
+++ b/etc/deps.txt
@@ -26,7 +26,7 @@ requests >= 2.3, < 2.4
iso8601==0.1.4
passlib==1.6.1
py-bcrypt==0.3
-Pillow>=2.0.0
+Pillow>=2.4.0
python-magic==0.4.6
twill>=1.8.0
validate_email==1.2
diff --git a/extranet_spr/application.py b/extranet_spr/application.py
index 9d8e84c..72a83ee 100644
--- a/extranet_spr/application.py
+++ b/extranet_spr/application.py
@@ -80,7 +80,7 @@ def create_app(config=None, config_file=None):
assert not config
config = Config(config_file)
- app = Application(config=config)
+ app = Application(config=config, instance_path=os.environ.get('EXTRANET_INSTANCE_PATH'))
return app
# loader to be used by celery workers
diff --git a/extranet_spr/commands/manage.py b/extranet_spr/commands/manage.py
index b144c66..1f14ab2 100755
--- a/extranet_spr/commands/manage.py
+++ b/extranet_spr/commands/manage.py
@@ -78,8 +78,9 @@ def run():
DEBUG = app.config.get('DEBUG')
PORT = app.config.get('PORT', 5000)
+ HOST = app.config.get('INSTANCE_HOST', '0.0.0.0')
- app.run(host="0.0.0.0", debug=DEBUG, port=PORT)
+ app.run(host=HOST, debug=DEBUG, port=PORT)
@manager.command
......@@ -126,7 +126,7 @@ egg-link = Extranet-SPR.egg-link
[extranet-patch]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/${:filename}
md5sum = 9613fc984e6d3e1c5812ffd018ff6a95
md5sum = 2e051c06e8107e613f642c833f435ff3
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = extranet.patch
......@@ -366,7 +366,6 @@ iso8601 = 0.1.4
passlib = 1.6.1
py-bcrypt = 0.3
python-magic = 0.4.6
twill = 0.9.1
validate_email = 1.2
pydns = 2.3.6
docflow = 0.3.1
......@@ -380,7 +379,7 @@ WTForms = 1.0.4
WTForms-Alchemy = 0.7.15
WTForms-Components = 0.7.0
#psycopg2 = 2.4.6
psycopg2 = 2.4.6
SQLAlchemy = 0.8.6
# actually >=0.8,<0.9 but only buildout 2 can do that
redis = 2.7.2
......@@ -408,7 +407,7 @@ coveralls = 0.2
Fabric = 1.6.0
fabtools = 0.13.0
pytest-cov = 1.6
pytest = 2.4.2
pytest = 2.3.4
Flask-LinkTester = 0.2.5
#: PRODUCTION
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment