Info about beers for sale in Norway
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
alembic
data
dbupdate
provisioning
web
.bowerrc
.env
.gitignore
LICENSE.txt
Vagrantfile
alembic.ini
beer_compare_fasit.txt
beername_compare.py
bower.json
breweryname_compare.py
err_polet.txt
manage.py
mapping.sql
readme.md
requirements.txt
runapp.py

readme.md

Beerdatabase

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.

Setup

  1. Install ansible and vagrant
  2. copy provisioning/host_vars/development_example to provisioning/host_vars/172.16.10.15, and fill the missing parts
  3. run vagrant up dev
  4. run vagrant ssh dev
  5. run python manage.py update_admin to load admin data
  6. run python manage.py update_ratebeer to load ratebeer data
  7. run python manage.py update_pol to load pol data
  8. run python runapp.py to launch app
  9. app is now available at localhost:8090

Deploy to prod

  1. create an ssh config for beerdatabase_do
  2. copy provisioning/host_vars/production_example to provisioning/host_vars/beerdatabase_do, and fill the missing parts
  3. run ansible-playbook -K -i provisioning/inventory provisioning/playbook.yml