Inspiration:
- Connect via SSH
ssh root@nice.droplet.ip.address
- Update
sudo apt-get update
- Install nginx
sudo apt-get install nginx
Check version:nginx -v
- Install NodeJS (min. 8th – in video)
sudo apt-get install nodejs
Check version:node -v
- Install YARN on Ubuntu – more info
Check version:yarn -v
- Make dir for app
mkdir nuxt
- Connect server to GitHub/GitLab (video | min. 10:50)
- generate SSH
- set SSH key like deploy key in GitHub/GitLab
- generate SSH
- Change root folder in nginx configuration (video | min. 14:30)
I didn’t know commands in vim editor. - Prepare app in command line on server
git pull
yarn install
yarn run generate / yarn nuxt build