Permalink
Browse files

use PORT and requirements.txt

  • Loading branch information...
1 parent 1aef7cb commit fe1fce6be707a936ca101d1bac4ffbd1f10538d4 Sridhar Ratnakumar committed Apr 20, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −0 requirements.txt
  2. +0 −3 stackato.yml
  3. +3 −1 wsgi.py
View
1 requirements.txt
@@ -0,0 +1 @@
+werkzeug
View
3 stackato.yml
@@ -1,5 +1,2 @@
name: werkzeug-debugger
-requirements:
- pypm:
- - werkzeug
View
4 wsgi.py
@@ -1,3 +1,4 @@
+import os
from werkzeug.wrappers import Request, Response
from werkzeug.debug import DebuggedApplication
@@ -11,4 +12,5 @@ def application(request):
if __name__ == '__main__':
from werkzeug.serving import run_simple
- run_simple('localhost', 4000, application)
+ port = int(os.environ.get("PORT", 5000))
+ run_simple('0.0.0.0', port, application)

0 comments on commit fe1fce6

Please sign in to comment.