Skip to content

Instantly share code, notes, and snippets.

@anandology
Created May 21, 2013 10:19
Show Gist options
  • Save anandology/5618808 to your computer and use it in GitHub Desktop.
Save anandology/5618808 to your computer and use it in GitHub Desktop.
suggested improvements to funnel runserver.py
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