mirror of https://github.com/tteck/Proxmox.git
Compare commits
2 Commits
0ab3151825
...
612979a040
Author | SHA1 | Date |
---|---|---|
Rémi Bédard-Couture | 612979a040 | |
Rémi Bédard-Couture | b4732cd8e9 |
|
@ -68,6 +68,8 @@ function update_script() {
|
|||
pnpm i &>/dev/null
|
||||
pnpm run build &>/dev/null
|
||||
cp -r .next/static .next/standalone/.next/
|
||||
mkdir -p /opt/peanut/.next/standalone/config
|
||||
ln -sf /etc/peanut/settings.yml /opt/peanut/.next/standalone/config/settings.yml
|
||||
systemctl start peanut
|
||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||
msg_ok "Updated $APP to ${RELEASE}"
|
||||
|
|
|
@ -44,6 +44,15 @@ $STD npm install -g pnpm
|
|||
$STD pnpm i
|
||||
$STD pnpm run build
|
||||
cp -r .next/static .next/standalone/.next/
|
||||
mkdir -p /opt/peanut/.next/standalone/config
|
||||
mkdir -p /etc/peanut/
|
||||
cat <<EOF >/etc/peanut/settings.yml
|
||||
WEB_HOST: 0.0.0.0
|
||||
WEB_PORT: 3000
|
||||
NUT_HOST: 0.0.0.0
|
||||
NUT_PORT: 3493
|
||||
EOF
|
||||
ln -sf /etc/peanut/settings.yml /opt/peanut/.next/standalone/config/settings.yml
|
||||
msg_ok "Installed Peanut"
|
||||
|
||||
msg_info "Creating Service"
|
||||
|
@ -57,10 +66,10 @@ Restart=always
|
|||
RestartSec=5
|
||||
Type=simple
|
||||
Environment="NODE_ENV=production"
|
||||
Environment="NUT_HOST=localhost"
|
||||
Environment="NUT_PORT=3493"
|
||||
Environment="WEB_HOST=0.0.0.0"
|
||||
Environment="WEB_PORT=3000"
|
||||
#Environment="NUT_HOST=localhost"
|
||||
#Environment="NUT_PORT=3493"
|
||||
#Environment="WEB_HOST=0.0.0.0"
|
||||
#Environment="WEB_PORT=3000"
|
||||
WorkingDirectory=/opt/peanut
|
||||
ExecStart=node /opt/peanut/.next/standalone/server.js
|
||||
TimeoutStopSec=30
|
||||
|
|
Loading…
Reference in New Issue