play/run.sh

18 lines
349 B
Bash
Executable File

#!/bin/bash
# Wrapper for the Play SvelteKit process.
set -e
DIR="/var/www/play"
PORT="${PORT:-2028}"
HOST="${HOST:-127.0.0.1}"
ORIGIN="${ORIGIN:-https://play.thehowlingwhispers.com}"
export PORT HOST ORIGIN
if [ -f "$DIR/.env" ]; then
set -a
# shellcheck disable=SC1090,SC1091
source "$DIR/.env"
set +a
fi
exec node "$DIR/build/index.js"