Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
added utils to activate paas virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed Jul 15, 2015
1 parent a9d7d9d commit e0ba8a1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wsgi.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# -*- coding: utf-8 -*-
#!/usr/bin/python

from werkzeug.serving import run_simple
from werkzeug.wsgi import DispatcherMiddleware

from quokka import create_app, create_api
from quokka.utils.paas import activate

# If running on PAAS such as OpenShift or heroku may require venv activation
activate()

application = DispatcherMiddleware(create_app(), {
'/api': create_api()
Expand Down

0 comments on commit e0ba8a1

Please sign in to comment.