#!/bin/bash # Wrapper for the Sandbox SvelteKit process. set -e DIR="/var/www/sandbox" PORT="${PORT:-2027}" HOST="${HOST:-127.0.0.1}" ORIGIN="${ORIGIN:-https://sandbox.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"