From bcc2b7a33f4cf09caacedbc937fa14513b74e557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Garc=C3=ADa?= <73230111+alegarsan11@users.noreply.github.com> Date: Tue, 28 May 2024 17:24:51 +0200 Subject: [PATCH] feat: gunicorn deploy --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index f50a120..20e567b 100644 --- a/README.md +++ b/README.md @@ -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):