install node js
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
And run the script
sudo bash nodesource_setup.sh
sudo apt-get install nodejs
install build-essential package
sudo apt-get install build-essential
root is /var/www/html
so your build vue and cp to nginx root directory
git clone [your repo]
build app
npm run build
go to root dir
cd /var/www/html
cp dist dir to root dir
cp -rf [your Dir]/dist/* ./
end :)