Skip to content

Instantly share code, notes, and snippets.

@racterub
Created July 12, 2018 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save racterub/47849e329d9d0dcc13c458a3abdb874e to your computer and use it in GitHub Desktop.
Save racterub/47849e329d9d0dcc13c458a3abdb874e to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
from website import app
import os
DEBUG = True
if __name__ == '__main__':
if DEBUG:
port = 6969
else:
port = int(os.environ.get("PORT", 5000))
app.run(host='0.0.0.0', port=port, threaded=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment