Running a Server

romulodl edited this page Feb 28, 2014 · 2 revisions

The Bandiera server is written in Ruby, so you're going to need to be able to run a Ruby application within your organisation.

  1. Clone this repo.
  2. Run bundle install --without development test.
  3. Create a config/database.yml file with your database connection details (use config/database.yml.sample as a guide).
  4. Run RACK_ENV=production bundle exec rake db:create db:migrate.
  5. Run bundle exec rackup -p 5000

You'll now see the web interface sitting on http://localhost:5000, and the API at http://localhost:5000/api. Obviously in production, you'll want to run it via your favourite rack server (i.e. Unicorn, Puma, Thin or Passenger).