Skip to content

Instantly share code, notes, and snippets.

@kylef
Created April 14, 2013 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylef/5383193 to your computer and use it in GitHub Desktop.
Save kylef/5383193 to your computer and use it in GitHub Desktop.
Static server for Heroku using river
web: gunicorn -w 4 serve:wsgi
gunicorn==0.17.2
-e git+https://github.com/kylef/rivr@78e0f42f803b438281ad5f8dd6c5bbc10d916d06#egg=rivr-dev
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