diff --git a/conf/.env b/conf/.env index 374ae5e..e1b2de3 100644 --- a/conf/.env +++ b/conf/.env @@ -1,5 +1,7 @@ DATABASE_URL="file:./database/db.sqlite" +PORT="__PORT__" + # Next Auth # You can generate a new secret on the command line with: # openssl rand -base64 32 @@ -14,3 +16,5 @@ NEXT_PUBLIC_DISABLE_ANALYTICS="true" DEFAULT_COLOR_SCHEME="light" DOCKER_HOST="unix:///var/run/docker.sock" + +TZ=__TIMEZONE__ \ No newline at end of file diff --git a/conf/systemd.service b/conf/systemd.service index 8d617b2..ea32725 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,9 +7,10 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ -Environment="PATH=__ENV_PATH__" +Environment="__YNH_NODE_LOAD_PATH__" +#Environment="PATH=__ENV_PATH__" Environment="NODE_ENV=production" -Environment="PORT=__PORT__" +#Environment="PORT=__PORT__" ExecStart=/usr/bin/yarn start Restart=on-failure RestartSec=5 diff --git a/scripts/install b/scripts/install index c651c64..5dcdb81 100755 --- a/scripts/install +++ b/scripts/install @@ -38,7 +38,7 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1 # Create a dedicated NGINX config ynh_add_nginx_config -env_path="$PATH" +#env_path="$PATH" # Create a dedicated systemd config ynh_add_systemd_config