-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
19 additions
and
0 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,18 @@ | ||
For convenience, as WSGI compliant symbole is available at `webqueu2api.api:app`. This can be used with any WSGI server. This project was developed against [gunicorn](https://gunicorn.org/) so that is what we recommend. | ||
|
||
!!! example "Development Example" | ||
Start a server on `localhost:5000` in debug mode. | ||
```bash | ||
gunicorn --log-level debug webqueue2.api:app | ||
``` | ||
|
||
!!! example "Production Example" | ||
Start a public server on port 5000 in the background with access and error logs written to files. | ||
```bash | ||
gunicorn --daemon \ | ||
--access-logfile /var/log/webqueue2api/access.log \ | ||
--error-logfile /var/log/webqueue2api/error.log \ | ||
webqueue2.api:app | ||
``` | ||
|
||
See [gunicorn's Docs](https://gunicorn.org/#docs) for more details about configuring gunicorn. |
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 |
---|---|---|
|
@@ -3,5 +3,6 @@ | |
nav: | ||
- Getting Started.md | ||
- Configuration.md | ||
- Deployment.md | ||
- Package Structure.md | ||
- ... |