diff --git a/conf/systemd.service b/conf/systemd.service index fdb24b8..e9cb026 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,8 +7,9 @@ Type=simple User=__APP__ Group=__APP__ +Environment="DJANGO_SETTINGS_MODULE=__APP__.settings" WorkingDirectory=__INSTALL_DIR__/ -ExecStart= +ExecStart=__INSTALL_DIR__/virt/bin/gunicorn lucterios.framework.wsgi --bind 0.0.0.0:__PORT__ -w 1 --timeout 600 --access-logfile __INSTALL_DIR__/access.log --error-logfile __INSTALL_DIR__/error.log StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit Restart=on-failure diff --git a/manifest.toml b/manifest.toml index fe25c0a..575602b 100644 --- a/manifest.toml +++ b/manifest.toml @@ -81,7 +81,7 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "libxml2-dev,libxslt-dev,libjpeg-dev,libfreetype6,libfreetype6-dev,zlib1g-dev,python3-pip,python3-dev,python3-tk,python3-pil,python3-dev,build-essential,pkg-config" + packages = "libxml2-dev,libxslt-dev,libjpeg-dev,libfreetype6,libfreetype6-dev,zlib1g-dev,python3-pip,python3-dev,python3-tk,python3-pil,python3-dev,build-essential,pkg-config,postgresql" [resources.ports] # This will pick a random port for reverse-proxying and store it as the $port setting