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 Make changes :
- Start the server before making any modifications :
$ npm run dev
- if you want to add a project, add news and outputs :
Open theprojlist.json
file in thesrc/assets/data
folder. Then, add an entry. See the project list specification page for details.
- if you want to add a publication :
Open the publicationList.json
file in thesrc/assets/data
folder. Then, add an entry in the appropriate date section. See the publication list for details.
- When done build the application in order to publish it on the web :
# build
$ npm run build
- deploy the application
# deploy on the VM
$ scp -r dist/* <username>@www19:/var/vhosts/vital-it.ch/vital-dh/htdocs/
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/