#!/usr/bin/env bash # Starts the app on :8080 against PostgreSQL (localhost:5433, db urlshort) and Redis (localhost:6379). # -Duser.timezone=UTC matters: the PostgreSQL JDBC driver sends the JVM's zone to the server, and a legacy # zone name such as Asia/Calcutta can be rejected ("invalid value for parameter TimeZone"). set -euo pipefail cd "$(dirname "$0")/.." mvn -q -DskipTests package exec java -Duser.timezone=UTC -jar target/system-design-url-shortener-1.0.0.jar "$@"