Skip to content

Commit

Permalink
Add deployment docs
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Aug 3, 2021
1 parent 7791923 commit c95e283
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs-src/webqueue2api Package/Deployment.md
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.
1 change: 1 addition & 0 deletions docs-src/webqueue2api Package/awesome-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
nav:
- Getting Started.md
- Configuration.md
- Deployment.md
- Package Structure.md
- ...

0 comments on commit c95e283

Please sign in to comment.