#!/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"