From 6ef713ab3dd00c989b0a0198a7accc63c1aa574f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 20 Jul 2023 01:30:35 +0800 Subject: [PATCH] fix(install script): oom --- config/database.go | 2 +- panel-example.conf | 2 +- scripts/install_panel.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/database.go b/config/database.go index 8c8dbddc..4d68a7e0 100644 --- a/config/database.go +++ b/config/database.go @@ -14,7 +14,7 @@ func init() { "connections": map[string]any{ "panel": map[string]any{ "driver": "sqlite", - "database": "database/panel.db", + "database": "/www/panel/database/panel.db", "prefix": "", "singular": false, // Table name is singular }, diff --git a/panel-example.conf b/panel-example.conf index 321def7b..6fa59111 100644 --- a/panel-example.conf +++ b/panel-example.conf @@ -1,4 +1,4 @@ -APP_ENV=local +APP_ENV=production APP_KEY= APP_DEBUG=true APP_HOST=0.0.0.0 diff --git a/scripts/install_panel.sh b/scripts/install_panel.sh index 4fc393c8..7cbe70f2 100644 --- a/scripts/install_panel.sh +++ b/scripts/install_panel.sh @@ -215,7 +215,7 @@ Wants=network.target [Service] Type=simple WorkingDirectory=${setup_Path}/panel/ -ExecStart=./panel --env="panel.conf" +ExecStart=/www/panel/panel --env="/www/panel/panel.conf" ExecReload=kill -s HUP \$MAINPID ExecStop=kill -s QUIT \$MAINPID User=root