From 101ad9f73e97f83de1cf94eb3d62265d18565dd2 Mon Sep 17 00:00:00 2001 From: Chris Vogel Date: Fri, 10 May 2024 20:07:51 +0200 Subject: [PATCH] RAM, factory option for uvicorn --- conf/systemd.service | 2 +- manifest.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 2820248..697a162 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,7 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__FLOHMARKT_APP_DIR__ Environment="VENV_DIR=__FLOHMARKT_VENV_DIR__" -ExecStart=/bin/bash -c "__FLOHMARKT_VENV_DIR__/bin/uvicorn --host 127.0.0.1 --port __PORT__ flohmarkt.web:start 2>&1 | /usr/bin/ts '%%Y-%%m-%%d %%H:%%M:%%S'" +ExecStart=/bin/bash -c "__FLOHMARKT_VENV_DIR__/bin/uvicorn --factory --host 127.0.0.1 --port __PORT__ flohmarkt.web:start 2>&1 | /usr/bin/ts '%%Y-%%m-%%d %%H:%%M:%%S'" Restart=on-failure RestartSec=5s # nicer logfile naming https://codeberg.org/flohmarkt/flohmarkt_ynh/issues/38 diff --git a/manifest.toml b/manifest.toml index b588479..e09ec27 100644 --- a/manifest.toml +++ b/manifest.toml @@ -44,7 +44,7 @@ ldap = false sso = false # **estimate** minimum disk and RAM requirements -disk = "100M" +disk = "200M" ram.build = "200M" ram.runtime = "100M"