pf_app
Go to file
Paul Trowbridge 146961cc17 Point pf.sh at the DB_* env vars the server actually reads
server.js builds its pg pool from DB_HOST/DB_PORT/DB_NAME/DB_USER/
DB_PASSWORD, and that is what install.sh writes, but pf.sh had been
written against a DATABASE_URL/PF_USER scheme that nothing consumes.
The consequences were real: `status` always reported the database
unreachable, and `config` rewrote .env with cat >, replacing a working
connection with keys the server ignores.

Connect through a run_psql helper built from the DB_* vars, and have
config prompt for those six keys instead. Each prompt defaults to the
current value so entering through changes nothing, the password prompt
is hidden and keeps the stored one when left blank, and any other key
already in .env is carried over rather than dropped.

PF_USER goes away with it — pf_user reaches the server in the request
body, never from the environment.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 22:08:49 -04:00
lib Multi-slice operations, tagged bridge, and a reworked adjustment panel 2026-09-11 23:30:56 -04:00
public Add UX mockup and update spec with navigation direction 2026-04-25 14:56:29 -04:00
routes Multi-slice operations, tagged bridge, and a reworked adjustment panel 2026-09-11 23:30:56 -04:00
setup_sql Multi-slice operations, tagged bridge, and a reworked adjustment panel 2026-09-11 23:30:56 -04:00
ui Vendor a patched Perspective build with column-axis expand/collapse 2026-09-13 22:42:05 -04:00
.env.example Initial commit — pivot forecast application 2026-04-01 07:59:05 -04:00
.gitignore Scaffold React/Vite/Tailwind UI with 3-step Setup → Baseline → Forecast flow 2026-04-25 16:28:45 -04:00
CLAUDE.md Collapse the column hierarchy from the toolbar 2026-09-12 09:15:15 -04:00
install.sh Initial commit — pivot forecast application 2026-04-01 07:59:05 -04:00
package-lock.json Fix forecast data load and add byte-progress UI 2026-04-28 19:51:39 -04:00
package.json Add CLAUDE.md project instructions and license field to package.json 2026-05-02 20:47:15 -04:00
PERSPECTIVE.md Load Perspective from bundle, not CDN; pin all packages at 5.2.0 2026-08-17 21:30:19 -04:00
pf_perspective_options.md Record DuckDB virtual-server spike findings; choose display-grain pre-aggregation 2026-08-17 21:47:55 -04:00
pf_spec.md Merge perspective-inline-5.2.0: 5.2.0 pin, multi-slice ops, bridge, drag-select 2026-09-12 09:11:11 -04:00
pf.sh Point pf.sh at the DB_* env vars the server actually reads 2026-09-14 22:08:49 -04:00
server.js Fix forecast data load and add byte-progress UI 2026-04-28 19:51:39 -04:00