Skip to content

Conversation

manerlan
Copy link
Member

Closes #74 .

Updating the VM after #65 showed some gaps in docs/vm.md.

  • backend/.env on the VM: where it is, how to find the one the running backend uses (also for the staff, with sudo), URL-encoding the password, keeping COOKIE_SECURE off on HTTP, and testing the connection.
  • Update and restart: backup first (sudo -u postgres pg_dump), npm run db:migrate (missing before), and the backend before the frontend, since new frontend code expects the new API.
  • Start: check who runs the backend and from which checkout before stopping anything.
  • Checks: the GraphQL API (me, wines) after starting, and login on the site after updating.
  • Restore a backup with pg_restore.
  • Fixed server.js → src/server.ts and removed two stray ProxyPass lines.

Only documentation changes. Did new push to reflect change to usage of full dataset, missing some details that I am unsure of since I am not the one who made the switch to the full dataset

@manerlan manerlan requested a review from a team as a code owner November 17, 2026 19:53
@manerlan manerlan linked an issue Nov 17, 2026 that may be closed by this pull request
@manerlan
Copy link
Member Author

Nice if someone with control over the switch to the full dataset can fill out the missing info regarding that before merging

Copy link
Member

@siverne siverne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good, and it fixes two real problems: the update steps were missing npm run db:migrate (we hit exactly that error on the VM yesterday), and the docs still said server.js. Thanks also for removing the two stray ProxyPass lines after the Apache section, those were mine.

The Full dataset question is answered: main now has a «Load the Full dataset» section with the download links, the disk check, the import with nohup and VACUUM ANALYZE afterwards. Someone loaded Full on the VM on 17 November.

The PR has conflicts with main now. Could you merge main into the branch? The two sets of changes do not really disagree, it is mostly the same areas of the file. Happy to review again right after.

@manerlan
Copy link
Member Author

Solved merge conflict with newest commit, added db:seed:demo and check of myLists. Should be fine to approve now.

@oscarba oscarba merged commit 3cac110 into main Nov 20, 2026
@oscarba oscarba deleted the 74-vm-docs-fix branch November 20, 2026 19:01
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix VM-docs
4 participants