Skip to content
Merged
Show file tree
Hide file tree
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
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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/)
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ import { defineConfig } from 'vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
base : 'project1'
})