- Hostname: trentham3269.com
- SSH port: 2200
The following process assumes you have Ubuntu 16.04 with a non-root user with sudo privileges configured on your server.
- Install with apt:
sudo apt-get update
sudo apt-get install python3-pip python3-dev nginx postgresql postgresql-contrib git
- Set up a catalog user in linux and postgres:
sudo adduser catalog
sudo usermod -aG sudo catalog
su - catalog
sudo -u postgres createuser catalog
sudo -u postgres createdb catalog
- Configure git and clone catalog repo:
git config --global user.name "Your Name"
git config --global user.email "youremail@domain.com"
git clone https://github.com/Trentham3269/catalog.git && cd catalog
- Install with pip:
pip install uwsgi flask
- Create wsgi.py entry point
- Add catalog.ini configuration
- Create catalog.service systemd service:
sudo mv catalog.service /etc/systemd/system/
sudo systemctl start catalog
sudo systemctl enable catalog
- Configure nginx:
sudo vim /etc/nginx/sites-available/catalog
sudo ln -s /etc/nginx/sites-available/catalog /etc/nginx/sites-enabled
sudo systemctl restart nginx