-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e216aa
commit e6e1e6a
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
""" | ||
This file allows your to serve your application using gunicorn. gunicorn is not installed by default | ||
by the requirements file adev creates, you'll need to install it yourself. | ||
To run the app using gunicorn, in the terminal run | ||
pip install gunicorn | ||
gunicorn app.gunicorn:app --worker-class aiohttp.worker.GunicornWebWorker | ||
You could also use a variant of the above with heroku (in the `Procfile`) or with Docker in the | ||
ENTRYPOINT statement. | ||
""" | ||
import asyncio | ||
from .main import create_app | ||
|
||
loop = asyncio.get_event_loop() | ||
app = create_app(loop) |
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