Created
April 14, 2013 15:58
-
-
Save kylef/5383193 to your computer and use it in GitHub Desktop.
Static server for Heroku using river
This file contains 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
web: gunicorn -w 4 serve:wsgi |
This file contains 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
gunicorn==0.17.2 | |
-e git+https://github.com/kylef/rivr@78e0f42f803b438281ad5f8dd6c5bbc10d916d06#egg=rivr-dev |
This file contains 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
from rivr.views.static import StaticView | |
from rivr.wsgi import WSGIHandler | |
from rivr.server import serve | |
static = StaticView.as_view(document_root='app', use_request_path=True, index='index.html') | |
wsgi = WSGIHandler(static) | |
if __name__ == '__main__': | |
serve(static) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment