#!/bin/bash # Wrapper for the RP SvelteKit process. # Loads /var/www/rp/.env into the environment, then execs node. set -e DIR="/var/www/rp" PORT="${PORT:-2026}" HOST="${HOST:-127.0.0.1}" ORIGIN="${ORIGIN:-http://rp.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"