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.