This is the code for www.olmonopolet.no, a page that syncs data from Vinmonopolet and Ratebeer, and matches the data, using the Beertools python package.
- Install ansible and vagrant
- copy
provisioning/host_vars/development_exampletoprovisioning/host_vars/172.16.10.15, and fill the missing parts - run
vagrant up dev - run
vagrant ssh dev - run
python manage.py update_adminto load admin data - run
python manage.py update_ratebeerto load ratebeer data - run
python manage.py update_polto load pol data - run
python runapp.pyto launch app - app is now available at localhost:8090
- create an ssh config for beerdatabase_do
- copy provisioning/host_vars/production_example to provisioning/host_vars/beerdatabase_do, and fill the missing parts
- run
ansible-playbook -K -i provisioning/inventory provisioning/playbook.yml