From 2612f4dbcd1d2e23d963550c3b859ce7ff7dbf3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCttler?= Date: Fri, 5 Jun 2026 14:50:11 +0200 Subject: [PATCH] chore: rename go module path for remote go run --- Taskfile.yml | 9 +++------ server/bugreport/go.mod | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index e4d7fe6..2d17c43 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -408,7 +408,7 @@ tasks: echo "Uploaded $TARBALL and updated latest.json" deploy-bugreport: - desc: Build and deploy the Go bugreport server to the webserver + desc: Deploy the Go bugreport server by restarting the systemd service (it pulls latest code from Codeberg) preconditions: - sh: test -n "$SSH_USER" msg: "SSH_USER is not set" @@ -417,14 +417,11 @@ tasks: - sh: test -n "$SSH_KNOWN_HOSTS" msg: "SSH_KNOWN_HOSTS is not set" cmds: - - cd server/bugreport && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ../../build/bugreport-server . - | mkdir -p ~/.ssh printf '%s\n' "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts - ssh "$SSH_USER@$SSH_HOST" "mkdir -p bugreport/reports" - scp build/bugreport-server "$SSH_USER@$SSH_HOST:bugreport/bugreport-server" - ssh "root@$SSH_HOST" "systemctl daemon-reload && systemctl restart bugreport" - echo "Uploaded bugreport-server to $SSH_HOST and restarted service" + ssh "root@$SSH_HOST" "systemctl restart bugreport" + echo "Restarted bugreport service on $SSH_HOST to pull latest code from Codeberg" build-windows-release: desc: Build the Windows desktop app (release) — must run on a Windows machine with MSVC diff --git a/server/bugreport/go.mod b/server/bugreport/go.mod index 60d6f53..9468057 100644 --- a/server/bugreport/go.mod +++ b/server/bugreport/go.mod @@ -1,3 +1,3 @@ -module sharedinbox.de/bugreport +module codeberg.org/guettli/sharedinbox/server/bugreport go 1.21