Refactor guardian-install.sh to simplify dependency installation and ensure DEPLOYMENT_MODE is set for frontend service
This commit is contained in:
parent
e9d9d03aa8
commit
b4646fbd78
@ -16,14 +16,11 @@ update_os
|
|||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
git \
|
git \
|
||||||
|
nodejs \
|
||||||
|
npm \
|
||||||
sqlite3 \
|
sqlite3 \
|
||||||
unzip \
|
unzip \
|
||||||
curl \
|
curl
|
||||||
ca-certificates \
|
|
||||||
gnupg
|
|
||||||
|
|
||||||
curl -fsSL https://deb.nodesource.com/setup_24.x | bash -
|
|
||||||
$STD apt-get install -y nodejs
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Setup Guardian"
|
msg_info "Setup Guardian"
|
||||||
@ -77,6 +74,7 @@ Wants=guardian-backend.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/opt/Guardian/frontend
|
WorkingDirectory=/opt/Guardian/frontend
|
||||||
|
Environment=DEPLOYMENT_MODE=standalone
|
||||||
ExecStart=/usr/bin/npm run start
|
ExecStart=/usr/bin/npm run start
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=3
|
RestartSec=3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user