From b7d273220711dace263ffd032b7592d7867dd774 Mon Sep 17 00:00:00 2001 From: James Brechtel Date: Wed, 8 Jul 2026 12:15:28 -0400 Subject: [PATCH] Add scripts/run for local development --- nvim.log | 7 +++++++ scripts/run | 12 ++++++++++++ template/dashboard.html | 2 ++ template/episode_form.html | 2 ++ 4 files changed, 23 insertions(+) create mode 100644 nvim.log create mode 100755 scripts/run diff --git a/nvim.log b/nvim.log new file mode 100644 index 0000000..1ccd53b --- /dev/null +++ b/nvim.log @@ -0,0 +1,7 @@ +WRN 2026-07-08T09:54:27.062 ?.2071294 socket_watcher_start:184: Failed to remove stale socket /run/user/1000/nvim.2071294.0: no such file or directory +WRN 2026-07-08T09:54:27.062 ?.2071294 server_start:197: Failed to start server: permission denied: /run/user/1000/ +WRN 2026-07-08T09:54:27.063 ui.2071293 tui_handle_term_mode:239: TUI: terminal mode 69 detected, state 2 +WRN 2026-07-08T09:54:27.063 ui.2071293 tui_handle_term_mode:239: TUI: terminal mode 2026 detected, state 2 +WRN 2026-07-08T09:54:27.063 ui.2071293 tui_handle_term_mode:239: TUI: terminal mode 2027 detected, state 3 +WRN 2026-07-08T09:54:27.063 ui.2071293 tui_handle_term_mode:226: TUI: terminal mode 2031 unavailable, state 0 +WRN 2026-07-08T09:54:27.063 ui.2071293 tui_handle_term_mode:226: TUI: terminal mode 2048 unavailable, state 0 diff --git a/scripts/run b/scripts/run new file mode 100755 index 0000000..304fa11 --- /dev/null +++ b/scripts/run @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +set -euo pipefail + +cd "$(dirname "$0")/.." + +export PORT="${PORT:-8080}" +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 . diff --git a/template/dashboard.html b/template/dashboard.html index 016092a..d4f5f71 100644 --- a/template/dashboard.html +++ b/template/dashboard.html @@ -54,6 +54,8 @@
+
diff --git a/template/episode_form.html b/template/episode_form.html index 6c5ad9d..45e586b 100644 --- a/template/episode_form.html +++ b/template/episode_form.html @@ -43,6 +43,8 @@
+