Permalink
Browse files

Add support for environment-specific port in development server

  • Loading branch information...
1 parent 1808a9a commit 802e41b7f50259669ba0ba3722049db095ecdd2f @j4mie committed Jul 1, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 brighton.py
View
@@ -148,4 +148,5 @@ def redirect_from_epio():
if __name__ == '__main__':
- app.run(debug=True)
+ port = int(os.getenv('PORT', 5000))
+ app.run(debug=True, host='0.0.0.0', port=port)

0 comments on commit 802e41b

Please sign in to comment.