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_example
toprovisioning/host_vars/172.16.10.15
, and fill the missing parts - run
vagrant up dev
- run
vagrant ssh dev
- run
python manage.py update_admin
to load admin data - run
python manage.py update_ratebeer
to load ratebeer data - run
python manage.py update_pol
to load pol data - run
python runapp.py
to 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