Created
May 21, 2013 10:19
-
-
Save anandology/5618808 to your computer and use it in GitHub Desktop.
suggested improvements to funnel runserver.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from website import app, models, init_for | |
init_for('dev') | |
models.db.create_all() | |
try: | |
port = int(sys.argv[1]) | |
except (IndexError, ValueError): | |
port = 3000 | |
app.run('0.0.0.0', port=port, debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment