Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add support for environment-specific port in development server

  • Loading branch information...
commit 802e41b7f50259669ba0ba3722049db095ecdd2f 1 parent 1808a9a
@j4mie authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  brighton.py
View
3  brighton.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.