#!/usr/bin/env bash
set -euo pipefail

cd "$(dirname "$0")/.."

export PORT="${PORT:-7070}"
export PODSTALK_LINK="${PODSTALK_LINK:-http://localhost:$PORT}"
export PODSTALK_DB="${PODSTALK_DB:-podstalk.db}"
export PODSTALK_UPLOAD_DIR="${PODSTALK_UPLOAD_DIR:-uploads}"

echo "Starting Podstalk on http://localhost:$PORT"
go run .
