SITE_DIR, HUGO_IMAGE, PORT defined once in .env. Scripts source it instead of duplicating definitions.
8 lines
312 B
Bash
8 lines
312 B
Bash
# Shared configuration for all scripts.
|
|
# Sourced by scripts/*.sh — do not use Docker --env-file with this.
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[1]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
|
SITE_DIR="${PROJECT_ROOT}/site"
|
|
HUGO_IMAGE="ghcr.io/gohugoio/hugo:latest"
|
|
PORT="${PORT:-1313}"
|