defect tracking cache with api
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
conf
db/migrate
docs
lib
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
NOTICE.txt
README.md
Rakefile
config.ru

README.md

defects

software defect data warehouse, extracts defects from multiple sources, normalizes defect information, and provides restful api to access the warehouse.

dependencies

  • ruby 1.9.2-p290 or greater (not tested with 1.9.3)
  • sinatra
  • thin
  • postgresql
  • sqlite3 (for development)
  • activerecord
  • highline

install

  1. clone the source from gerrit
    gerrit clone ssh://reviews.cloudfoundry.org/defects
  1. bundle install
    bundle install
  1. create a config file
    rake config # input postgresql username and password
  1. create the database
    rake db:migrate
  1. set environment # default is development which uses sqlite3
    export RACK_ENV=production
  1. start up the web server
    bundle exec thin start -d -p <port>   # e.g. bundle exec thin start -d -p 8000
  1. stop the web server
    thin stop

troubleshooting

  • on occassion, the thin stop command fails to shutdown the server in which case you'll need to kill the process manually via the kill command
    kill -9 PID