ops: add deployment scripts and nginx/systemd configs
Scripts for installing and starting the app and nginx proxy. Includes systemd user service units and nginx configs for both user-mode 8443 and system-mode 443.
This commit is contained in:
17
scripts/install-user-systemd.sh
Executable file
17
scripts/install-user-systemd.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
USER_UNIT_DIR="${HOME}/.config/systemd/user"
|
||||
|
||||
mkdir -p "${USER_UNIT_DIR}"
|
||||
install -m 0644 "${ROOT_DIR}/deploy/systemd/local-kanban.service" "${USER_UNIT_DIR}/local-kanban.service"
|
||||
install -m 0644 "${ROOT_DIR}/deploy/systemd/local-kanban-nginx-8443.service" "${USER_UNIT_DIR}/local-kanban-nginx-8443.service"
|
||||
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user enable --now local-kanban.service
|
||||
systemctl --user enable --now local-kanban-nginx-8443.service
|
||||
|
||||
echo "Local Kanban is managed by user systemd:"
|
||||
echo " systemctl --user status local-kanban.service"
|
||||
echo " systemctl --user status local-kanban-nginx-8443.service"
|
||||
Reference in New Issue
Block a user