Skip to content

Commit

Permalink
feat: gunicorn deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
alegarsan11 committed May 28, 2024
1 parent c0b1eee commit bcc2b7a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ To deploy an Apache server, use the build.sh file:

(Apache server will be available on port 8080)

### Deploying with gunicorn
1. Install dependencies

`sudo apt install gunicorn gevent`

2. In nftables-frontend folder execute:

`sudo gunicorn -w 4 -b 0.0.0.0:4000 --worker-class gevent app:app`

3. In nftables-parser execute:

`sudo hug -f main.py`


### Testing and Coverage
To run the tests and generate coverage reports, use the following commands:
- Execute the test files (in the nftables-frontend folder):
Expand Down

0 comments on commit bcc2b7a

Please sign in to comment.