Tested on Ubuntu 16
Install packages from Vagrant file provision part
cd /opt
git clone https://github.com/minsk-hackerspace/SpaceCat.git
cd /opt/SpaceCat/backend
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt
- dir /var/lib/redis
- supervised systemd
- Get file contents from ./config
- /etc/systemd/system/redis.service
systemctl enable redis
systemctl start redis
cd /opt/SpaceCat
mkdir -p /etc/uwsgi
cp backend/voting.ini /etc/uwsgi/
- Get file contents from ./config
- /etc/systemd/system/redis.service
systemctl enable uwsgi
systemctl start uwsgi
- copy app config /etc/uwsgi
- correct paths in ini
sudo cp config/server/etc/nginx/sites-available/space_cat.conf /etc/nginx/sites-available/
sudo ln -s /etc/nginx/sites-available/space_cat.conf /etc/nginx/sites-enabled/
rm /etc/nginx/sites-enabled/default