Files
petfeed/docker/start.sh
T
admin 6980b09e45 fix(deploy): resolve Sentry sourcemap upload release name via git SHA build arg
.git is excluded from the Docker build context (.dockerignore), so
@sentry/nextjs can't auto-detect a release via git and falls back to the
literal string "undefined" for --release, which made the sourcemaps
upload command fail with exit code 1 (confirmed via verbose build log).
start.sh now resolves the short SHA on the host and passes it through
as a SENTRY_RELEASE build arg, same pattern as the other Sentry vars.
2026-08-14 07:18:17 +02:00

21 lines
691 B
Bash

#!/bin/sh
# Start PawFeed.
# Docker Compose automatically reads docker/.env from the same directory
# as this script for both build-args and container runtime vars.
set -e
cd "$(dirname "$0")"
if [ ! -f .env ]; then
echo "ERROR: docker/.env not found."
echo "Copy .env.example to docker/.env and fill in your values."
exit 1
fi
# Sentry/GlitchTip sourcemap upload needs a release name at build time.
# .git is excluded from the Docker build context, so it's resolved here
# on the host (where .git exists) and passed through as a build arg.
export SENTRY_RELEASE="$(git -C .. rev-parse --short HEAD)"
docker compose up -d --build
echo "PawFeed is starting on http://localhost:4563"