Skip to content

Instantly share code, notes, and snippets.

@RobSpectre
Created January 24, 2012 01:19
Show Gist options
  • Save RobSpectre/1667144 to your computer and use it in GitHub Desktop.
Save RobSpectre/1667144 to your computer and use it in GitHub Desktop.
SMS Birthday Card Step 1: Write boilerplate to create Flask application.
from flask import Flask
import os
app = Flask(__name__)
if __name__ == '__main__':
port = int(os.environ.get('PORT', 5000))
if port == 5000:
app.debug = True
app.run(host='0.0.0.0', port=port)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment