Compare commits

..

No commits in common. "612979a04059d215f570aaa1bdace88bc0ad4b53" and "0ab315182519b8dca28e4c7d08fdbb9f3a3dd579" have entirely different histories.

2 changed files with 4 additions and 15 deletions

View File

@ -68,8 +68,6 @@ function update_script() {
pnpm i &>/dev/null pnpm i &>/dev/null
pnpm run build &>/dev/null pnpm run build &>/dev/null
cp -r .next/static .next/standalone/.next/ 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 systemctl start peanut
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated $APP to ${RELEASE}" msg_ok "Updated $APP to ${RELEASE}"

View File

@ -44,15 +44,6 @@ $STD npm install -g pnpm
$STD pnpm i $STD pnpm i
$STD pnpm run build $STD pnpm run build
cp -r .next/static .next/standalone/.next/ 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_ok "Installed Peanut"
msg_info "Creating Service" msg_info "Creating Service"
@ -66,10 +57,10 @@ Restart=always
RestartSec=5 RestartSec=5
Type=simple Type=simple
Environment="NODE_ENV=production" Environment="NODE_ENV=production"
#Environment="NUT_HOST=localhost" Environment="NUT_HOST=localhost"
#Environment="NUT_PORT=3493" Environment="NUT_PORT=3493"
#Environment="WEB_HOST=0.0.0.0" Environment="WEB_HOST=0.0.0.0"
#Environment="WEB_PORT=3000" Environment="WEB_PORT=3000"
WorkingDirectory=/opt/peanut WorkingDirectory=/opt/peanut
ExecStart=node /opt/peanut/.next/standalone/server.js ExecStart=node /opt/peanut/.next/standalone/server.js
TimeoutStopSec=30 TimeoutStopSec=30