personal-website
It is a personal website developed in Vue. Demo
Update contents
Update project
- Create a new project json file with details.
- Update list in
projects.js
under store.
Build the project
Run npm run dev
to generate static files.
Deploy
- Update file and directory permissions in server (for replacing files)
sudo find <folder> -type d -exec chmod 777 {} \;
sudo find <folder> -type f -exec chmod 777 {} \;
- Copy all generated files from local to server ingoring
node_modules
.
scp -i ~/.ssh/<secret key> -r * <user>@<host>:<dest>
- Restart ngnix
sudo service nginx stop
sudo service nginx start
- Change back file and directory permissions in server
sudo find <folder> -type d -exec chmod 755 {} \;
sudo find <folder> -type f -exec chmod 755 {} \;