Ubuntu 18.04
sudo apt-get update
sudo apt-get dist-upgrade
sudo dpkg-reconfigure tzdata
sudo apt-get install apache2
sudo apt-get install python
sudo apt-get install python-pip
pip install pipenv
...
Certbot is used to generate SSL certificates. See Certbot documentation for installation process.
We use Apache server as proxy to the backend (running on port 5005).
Enable require Apache modules:
a2enmod proxy proxy_http
systemctl restart apache2.service
Setup your Virtual Host configuration (see documentation):
ProxyPass / http://localhost:5005/
ProxyPassReverse / http://localhost:5005/
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/backend.git
git push deploy