Files
refusol-datalogging/deploy-host.sh
T
bonaminandClaude Opus 5.5 b5c7663fd7 fix(deploy): run deploy-host.sh from its own checkout, any clone path
The hard-coded /home/bonamin/refusol-datalogger didn't match the real
clone (repo is refusol-datalogging). README clone URL updated too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 08:53:54 +03:00

13 lines
286 B
Bash

#!/bin/sh
set -e
# The checkout this script lives in, wherever it was cloned
PROJECT="$(cd "$(dirname "$0")" && pwd)"
echo "Deploy started at $(date)"
cd "$PROJECT"
git fetch origin main
git reset --hard origin/main
docker compose up -d --build 2>&1
echo "Deploy finished at $(date)"