Compare commits

...

2 Commits

Author SHA1 Message Date
436382087f update in deploy 2025-10-06 20:45:35 -07:00
c569ddc338 remote update 2025-10-06 20:45:26 -07:00
3 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,7 @@
import { $ } from "bun" import { $ } from "bun"
import restart from "./restart" import restart from "./restart"
export default async function () { export default async function update() {
if (process.env.NODE_ENV !== "production") { if (process.env.NODE_ENV !== "production") {
return { error: "Can only update in production." } return { error: "Can only update in production." }
} }
@ -16,4 +16,6 @@ export default async function () {
} else { } else {
return restart() return restart()
} }
} }
export const GET = update

View File

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

View File

@ -21,4 +21,4 @@ git push origin main
git push gitea main git push gitea main
# Run remote install on the target # Run remote install on the target
ssh $HOST "sudo reboot" curl $OPEN/cmd/update