Ubuntu 18.04
sudo apt-get update
sudo apt-get dist-upgrade
sudo dpkg-reconfigure tzdata
sudo apt-get install apache2
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
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-get update && sudo apt-get install yarn
Certbot is used to generate SSL certificates. See Certbot documentation for installation process.
Based on Deploy a website to a remote server with Git push by @francoisromain
Command to deploy from local:
git remote add deploy ssh://<user>@<ip-address>:/srv/app/git/frontend.git
git push deploy
- Copy the
.env.example
to.env
cp .env.example .env
- Replace the
MY_SECRET_MAPBOX_ACCESS_TOKEN
value by your generated Mapbox access token - Install the necessary package via npm or yarn
npm install # or yarn install
- Run the sh!t
npm run dev # or yarn dev
...