From 96d69d3cc58be4c0b0fde3d3301d676a2f429db8 Mon Sep 17 00:00:00 2001 From: Sawaymaan Singh Date: Thu, 17 Sep 2026 14:56:12 +0200 Subject: [PATCH] docs: document VM deployment Deployed a production build to the VM and verified it loads correctly at /project1. Closes #50 Co-authored-by: Edvin Gunic Co-authored-by: Felix Trommer --- docs/deployment.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/deployment.md diff --git a/docs/deployment.md b/docs/deployment.md new file mode 100644 index 0000000..4906e69 --- /dev/null +++ b/docs/deployment.md @@ -0,0 +1,23 @@ +# Deploy a test version to the VM + +## What we did + +We deployed a production build of the application to the group's VM to verify +early that it can be built and served under Apache. + +- Verified SSH access to `it2810-23.idi.ntnu.no`. +- Installed and enabled Apache2 on the VM. +- Built the project locally with `npm run build`. The `base` path in + `vite.config.ts` was already set to `/project1/`, so no code changes were + needed for the build to resolve correctly under that path. +- Copied the `dist` folder to the VM (via `/tmp`) and moved it into + `/var/www/html/project1`, replacing anything already there. + +## Verification + +The application is live at http://it2810-23.idi.ntnu.no/project1/. + +- JavaScript, CSS and images all load correctly. +- Filtering, sorting, country selection and navigation work as expected. +- The country list loads from the REST API on the VM. +- No errors appear in the browser console.