Éric Gaspar 2 лет назад
Родитель
Сommit
8c635b85e2
4 измененных файлов с 4 добавлено и 7 удалено
  1. 0 2
      conf/.env
  2. 2 3
      conf/systemd.service
  3. 1 1
      scripts/install
  4. 1 1
      scripts/upgrade

+ 0 - 2
conf/.env

@@ -1,7 +1,5 @@
 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

+ 2 - 3
conf/systemd.service

@@ -7,10 +7,9 @@ Type=simple
 User=__APP__
 Group=__APP__
 WorkingDirectory=__INSTALL_DIR__/
-Environment="__YNH_NODE_LOAD_PATH__"
-#Environment="PATH=ENV_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

+ 1 - 1
scripts/install

@@ -39,7 +39,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
 

+ 1 - 1
scripts/upgrade

@@ -58,7 +58,7 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
 # Create a dedicated NGINX config
 ynh_add_nginx_config
 
-#env_path="$PATH"
+env_path="$PATH"
 # Create a dedicated systemd config
 ynh_add_systemd_config