diff --git a/README.md b/README.md index 8244580..7d330d2 100644 --- a/README.md +++ b/README.md @@ -21,4 +21,19 @@ 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. +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 + 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/) 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' })