From 75ffa3011f2664c600224f4c305b60bf94a5d563 Mon Sep 17 00:00:00 2001 From: Ludvig Zapffe Date: Wed, 16 Sep 2026 15:47:22 +0200 Subject: [PATCH 1/3] feat: update README with VM build instructions and update Vite config --- README.md | 13 ++++++++++++- vite.config.ts | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8244580..53232f1 100644 --- a/README.md +++ b/README.md @@ -21,4 +21,15 @@ Before a pull request can be merged: or explain why not, then click *Resolve conversation*. 3. **Pushing new commits dismisses the approval**, so if you change something after being approved, ask for another review. This is deliberate: what was - approved is what gets merged. \ No newline at end of file + approved is what gets merged. + + +## Building / Copying over to the VM + +To build on your own pc and then copy the files over to the VM + ```bash + npm run build + scp -r dist/ NTNU-USERNAME@it2810-15.idi.ntnu.no:/tmp + ssh NTNU-USERNAME@it2810-15.idi.ntnu.no + sudo cp -r /tmp/dist/* /var/www/html/project1 + ``` diff --git a/vite.config.ts b/vite.config.ts index 9982072..dbeaa77 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,4 +4,5 @@ import { defineConfig } from 'vite' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], + base : 'project1' }) From 21799d4c8b1c4fec1ed94323d09da84e69612564 Mon Sep 17 00:00:00 2001 From: Ludvig Zapffe Date: Wed, 16 Sep 2026 15:53:03 +0200 Subject: [PATCH 2/3] docs: update README to include website availability link --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 53232f1..07bb6ad 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,5 @@ To build on your own pc and then copy the files over to the VM ssh NTNU-USERNAME@it2810-15.idi.ntnu.no sudo cp -r /tmp/dist/* /var/www/html/project1 ``` + +[The website should now be available](http://it2810-15.idi.ntnu.no/project1/) From fe749749cd2ec0118b51915516cd0fad2b4db193 Mon Sep 17 00:00:00 2001 From: Ludvig Zapffe Date: Wed, 16 Sep 2026 16:01:01 +0200 Subject: [PATCH 3/3] Added some clarifications to the README --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 07bb6ad..7d330d2 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,9 @@ Before a pull request can be merged: ## Building / Copying over to the VM -To build on your own pc and then copy the files over to the VM +To build on your own pc and then copy the files over to the VM. +Replace NTNU-USERNAME with your NTNU username, and use your NTNU password when promted. + ```bash npm run build scp -r dist/ NTNU-USERNAME@it2810-15.idi.ntnu.no:/tmp