update install scripts

This commit is contained in:
Chris Wanstrath 2025-09-26 10:22:13 -07:00
parent 12f4ce9657
commit 8efc808af2
8 changed files with 20 additions and 20 deletions

View File

@ -2,6 +2,6 @@
# It isn't enough to modify this yet.
# You also need to manually update the nose-pluto.service file.
HOST="${HOST:-chris@nose-pluto.local}"
DEST="${DEST:-~/pluto}"
HOST="${HOST:-nose@nose-pluto.local}"
DEST="${DEST:-~/nose}"
REPO="${REPO:-https://git.nose.space/defunkt/nose-pluto}"

View File

@ -1,8 +1,3 @@
#!/usr/bin/env bash
##
# deploys to your NOSEputer from git
source ./app/scripts/config.sh
ssh $HOST "cd $DEST && git pull && bun install && sudo systemctl restart nose-pluto.service"

View File

@ -45,5 +45,12 @@ sudo systemctl enable "$SERVICE_NAME"
echo ">> Starting (or restarting) $SERVICE_NAME"
sudo systemctl restart "$SERVICE_NAME"
echo ">> Done!"
echo ">> Enabling kiosk mode"
mkdir -p ~/.config/labwc
cat > ~/.config/labwc/autostart <<'EOF'
chromium-browser --noerrdialogs --disable-infobars --kiosk http://localhost
EOF
echo ">> Done! Rebooting!"
systemctl status "$SERVICE_NAME" --no-pager -l
sudo reboot

View File

@ -4,11 +4,11 @@ After=network-online.target
Wants=network-online.target
[Service]
User=chris
WorkingDirectory=/home/chris/pluto/app
User=nose
WorkingDirectory=/home/nose/nose/app
Environment=PORT=80
Environment=NODE_ENV=production
ExecStart=/home/chris/.bun/bin/bun start
ExecStart=/home/nose/.bun/bin/bun start
Restart=on-failure
RestartSec=2
CapabilityBoundingSet=CAP_NET_BIND_SERVICE

View File

@ -1,8 +1,3 @@
#!/usr/bin/env bash
##
# setup your NOSEputer from your dev machine
source ./app/scripts/config.sh
ssh $HOST "cd $DEST && ./app/scripts/install.sh && sudo systemctl start nose-pluto.service"

View File

@ -1,2 +1,3 @@
#!/usr/bin/env bash
ssh chris@nose-pluto.local "sudo systemctl restart nose-pluto.service"
source ./app/scripts/config.sh
ssh $HOST "sudo systemctl restart nose-pluto.service"

View File

@ -1,2 +1,3 @@
#!/usr/bin/env bash
ssh chris@nose-pluto.local "sudo systemctl start nose-pluto.service"
source ./app/scripts/config.sh
ssh $HOST "sudo systemctl start nose-pluto.service"

View File

@ -1,2 +1,3 @@
#!/usr/bin/env bash
ssh chris@nose-pluto.local "sudo systemctl stop nose-pluto.service"
source ./app/scripts/config.sh
ssh $HOST "sudo systemctl stop nose-pluto.service"