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>
13 lines
286 B
Bash
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)"
|