Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/deployment.md
Original file line number Diff line number Diff line change
@@ -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.