diff --git a/startGunicornService b/startGunicornService index 4a7c841..36d95db 100755 --- a/startGunicornService +++ b/startGunicornService @@ -1,5 +1,7 @@ -#!/usr/bin/env bash +#!/bin/bash set -euo pipefail -poetry run gunicorn -b "localhost:${PORT}" --timeout 120 'webapp.app' +export PATH="/usr/bin/:/bin/:/srv/www/Axione-FTTH-Test/.poetry/bin/" +poetry install +poetry run gunicorn -b "localhost:${PORT}" --timeout 120 'webapp:app'