ReliveRadio / reliveradio-plantasy

ReliveRadio Radioautomation auf Ruby on Rails Basis
www.reliveradio.de
2 stars 0 forks source link

Get up and running

Install VirtualBox

https://www.virtualbox.org/

Install Vagrant

https://www.vagrantup.com/

Install gem dependencies

  $ bundle

Install chef cookbooks

  $ librarian-chef install

Install vagrant-omnibus

  $ vagrant plugin install vagrant-omnibus

Build the VM

  $ vagrant up

Install missing packages

Install imagemagick and taglib package of the distrobution. This is required for gems that create logo thumbnails and tagging audio files.

  $ sudo apt-get install imagemagick taglib

Log in and install app gems

  $ vagrant ssh
  $ cd app
  $ bundle

Mailserver configuration

Create a configuration file app/config/application.yml and setup your mailserver credentials:

MAILER_PASSWORD: hackme
MAILER_FROM_ADDRESS: reliveradio-reminder@i42n.auriga.uberspace.de
MAILER_USERNAME: reliveradio-reminder@i42n.auriga.uberspace.de
MAILER_DOMAIN: i42n.auriga.uberspace.de
MAILER_SERVER_ADDRESS: auriga.uberspace.de

Configure database access

Open database.yml and configure user / password of the postgresql database.

Create and migrate database

  $ rake db:create
  $ rake db:migrate

Start sidekiq workers

Sidekiq workers process background tasks as downloading episodes for example.

$ bundle exec sidekiq