Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made hello runnable without gunicorn in debug mode #4

Merged
merged 1 commit into from Jun 17, 2014

Conversation

migurski
Copy link
Contributor

You can run it like this:

$ python hello.py

Flask’s debug mode outputs better error details than gunicorn, during dev + debug time. Also, auto-reloads the server when source files change!

You can run it like this:

    $ python hello.py

[Flask’s debug mode](http://flask.pocoo.org/docs/quickstart/#debug-mode) outputs better error details than gunicorn, during dev + debug time. Also, auto-reloads the server when source files change!
@lyzidiamond
Copy link
Owner

So when testing I should run python hello.py instead of python runserver.py? Do I keep the rest of the structure in there for deploy purposes? (This is pretty new to me.)

@migurski
Copy link
Contributor Author

Yeah, this allows you to leave runserver.py off, if you prefer. For deploy purposes, the Procfile + gunicorn is all that’s needed.

lyzidiamond added a commit that referenced this pull request Jun 17, 2014
Made hello runnable without gunicorn in debug mode
@lyzidiamond lyzidiamond merged commit 3ed840e into lyzidiamond:master Jun 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants