Rebel anti-VK project
- Put your deploying user's public key to root's authorized keys on deployment target computer.
- Install Docker on it: https://docs.docker.com/install/linux/docker-ce/debian/
- And docker-compose as well:
pip install docker-compose
# WARNING USE EXPLICITLY PIP2 AND WATCH IT INSTALLS docker package in /usr/local/lib/dist-packages/docker - Setup deploying computer(probably your dev PC)
git clone https://github.com/Eduard-gan/novk.git && cd novk
pipenv install --dev
- Edit novk/global_env file for secure custom keys and passwords
- Deploy project on server
pipenv run ansible-playbook ansible/prod-deploy.yml -i ansible/hosts
- Or run it on your local macine
pipenv run ansible-playbook ansible/local-deploy.yml -i ansible/hosts
- To clean up:
docker-compose down --rmi local && sudo rm -fr /var/novk
On Arch linux to pip install psycopg2cffi you need to:
- sudo pacman -S postgresql-libs
- pyenv install pypy-3.5-6.0.0
- pipenv install --python pypy3
- mkdir -p /etc/letsencrypt/live/novk.online
- openssl req -new -x509 -days 365 -nodes -out /etc/letsencrypt/live/novk.online/fullchain.pem -keyout /etc/letsencrypt/live/novk.online/privkey.pem
- pip install certbot
- certbot certonly --webroot -w /var/novk/ssl -d novk.online