1º - Login with SSH
2º - cd Protheus-API
3º - git pull
4º - cd frontend
5º - npm run build
or sudo yarn build
6º - pm2 restart all
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
sudo apt install build-essential
sudo npm install pm2@latest -g
pm2 startup systemd
When you start the services, you can save the list for restart with:
pm2 save
``` curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - ``` ``` echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list ``` `sudo apt update`
`sudo apt install --no-install-recommends yarn`
👤 Arthur Pedroti
- Github: @ArthurPedroti
- Linkedin: @ArthurPedroti
Contributions, issues and feature requests are welcome!
Give a ⭐️ if this project helped you!
Copyright © 2020 Arthur Pedroti.
This project is MIT licensed.
Made by 💙 by Arthur Pedroti