From 2dab5f4e4e24d9ce8768d23a519e84f1d9efd87e Mon Sep 17 00:00:00 2001 From: vividsystem Date: Sun, 16 Nov 2025 16:46:58 +0100 Subject: [PATCH 1/3] docs: clarified setup --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 933ab87..929e37a 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ After=network.target [Service] Type=simple User=your-user -WorkingDirectory=/home/your-user/your-app +WorkingDirectory=/home/your-user/spaces/backend ExecStart=/home/your-user/your-app/target/release/your-binary-name Restart=on-failure RestartSec=5 @@ -54,7 +54,7 @@ After=network.target [Service] Type=simple User=your-user -WorkingDirectory=/home/your-user/your-project +WorkingDirectory=/home/your-user/spaces/web ExecStart=/home/your-user/.bun/bin/bun run src/index.ts Restart=on-failure RestartSec=5 From d0e9770e4061452c31999de2ae0495e38b064363 Mon Sep 17 00:00:00 2001 From: vividsystem Date: Sun, 16 Nov 2025 16:48:11 +0100 Subject: [PATCH 2/3] docs: added package install step to instructions --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 929e37a..453b558 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ It is supposed to be file sharing managed into groups. I intend on adding auth i cd backend cargo build --release cd ../web +bun i bun run build ``` From a0909f9fa512d614611a0f2f10e15b1932f0d1d7 Mon Sep 17 00:00:00 2001 From: vividsystem Date: Sun, 16 Nov 2025 17:04:12 +0100 Subject: [PATCH 3/3] docs: fixing some minor isses --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 453b558..de0093c 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ bun run build ### Example Systemd services #### Backend +`spaces-backend.service` ```ini [Unit] Description=Spaces Backend @@ -38,7 +39,7 @@ After=network.target Type=simple User=your-user WorkingDirectory=/home/your-user/spaces/backend -ExecStart=/home/your-user/your-app/target/release/your-binary-name +ExecStart=/home/your-user/spaces/backend/target/release/backend Restart=on-failure RestartSec=5 Environment="RUST_LOG=info" @@ -46,17 +47,19 @@ Environment="RUST_LOG=info" [Install] WantedBy=multi-user.target ``` +`spaces-backend.service` #### Web ```ini [Unit] Description=Spaces Web After=network.target +Require=spaces-backend.service [Service] Type=simple User=your-user WorkingDirectory=/home/your-user/spaces/web -ExecStart=/home/your-user/.bun/bin/bun run src/index.ts +ExecStart=/home/your-user/.bun/bin/bun run .output/server/index.mjs Restart=on-failure RestartSec=5 Environment="NODE_ENV=production"