Skip to content

Instantly share code, notes, and snippets.

@cyberoctopi
Created May 5, 2012 19:22
Show Gist options
  • Select an option

  • Save cyberoctopi/2604871 to your computer and use it in GitHub Desktop.

Select an option

Save cyberoctopi/2604871 to your computer and use it in GitHub Desktop.
import os
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello():
return "Hello there"
if __name__ == '__main__':
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port)
web: python app.py runserver
distribute==0.6.24
wsgiref==0.1.2
Flask==0.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment