Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.2 KB

INSTALL.md

File metadata and controls

52 lines (36 loc) · 1.2 KB

Back-End install

Ubuntu 18.04

Requirements

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

Docker

...

Certbot

Certbot is used to generate SSL certificates. See Certbot documentation for installation process.

Apache configuration

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/

Automated deploy

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