|
|
# # HOW-TO
|
|
|
|
|
|
This project is a portfiolio of DH+ projects. It was built with VueJS and data is contained in flat JSON file.
|
|
|
|
|
|
This wiki page explain how to connect to the VM and make changes to e.g., update the publication or the news content. In addition the JSON format is described.
|
|
|
|
|
|
# To connect to the VM :
|
|
|
|
|
|
Open a shell, then type :
|
|
|
|
|
|
`$ ssh <username>@www19.vital-it.ch`
|
|
|
`$ cd /var/vhosts/vital-it.ch/vital-dh/htdocs/`
|
|
|
|
|
|
# To Make changes :
|
|
|
|
|
|
1. Start the server before making any modifications :
|
|
|
|
|
|
`$ npm run serve`
|
|
|
|
|
|
2. if you want to add a project, add news and outputs :
|
|
|
|
|
|
Open the`projlist.json` file in the`src/assets/data` folder. Then, add an entry.
|
|
|
|
|
|
3. if you want to add a publication :
|
|
|
|
|
|
Open the `publicationList.json` file in the`src/assets/data` folder. Then, add an entry in the appropriate date section.
|
|
|
|
|
|
4. When done build the application in order to publish it on the web :
|
|
|
|
|
|
```
|
|
|
# build
|
|
|
$ npm run build
|
|
|
```
|
|
|
|
|
|
5. deploy the application
|
|
|
|
|
|
```
|
|
|
# deploy on the VM
|
|
|
$ scp -r dist/* <username>@www19:/var/vhosts/vital-it.ch/vital-dh/htdocs/
|
|
|
```
|
|
|
|