{"issue":{"state":"open","created_at":"2011-12-02T07:29:20Z","updated_at":"2011-12-02T18:04:57Z","comments":2,"user":{"gravatar_id":"6b3da28d67c0c30048665399688f0fdc","id":72027,"url":"https://api.github.com/users/jergason","avatar_url":"https://secure.gravatar.com/avatar/6b3da28d67c0c30048665399688f0fdc?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jergason"},"body":"I am trying to set up a fresh copy of the app for development, and get stuck. Here is what I do:\r\n\r\n    $ git clone git@github.com:princelab/rails-metric_site.git && cd rails-metric_site\r\n    $ git checkout ryan #since this is the most recent branch I assume it is the dev one\r\n    #now set up my rvm gem environment\r\n    $ rvm gemset create archiver && rvm gemset use archiver\r\n    $ gem install bundler\r\n    $ bundle\r\n    #gems are not installed, so I'll try to run it\r\n    $ bundle exec rails s\r\n    => Booting WEBrick\r\n    => Rails 3.1.3 application starting in development on http://0.0.0.0:3000\r\n    => Call with -d to detach\r\n    => Ctrl-C to shutdown server\r\n    Exiting\r\n    /Users/jergason/.rvm/gems/ruby-1.9.2-p290@archiver/gems/railties-3.1.3/lib/rails/application/configuration.rb:106:in `read': No such file or directory - /Users/jergason/dropbox/prince_lab_stuff/rails-metric_site/config/database.yml (Errno::ENOENT)\r\n    # then the big old stack trace\r\n\r\nSo there is no database.yml file. I guess I can just copy the default one over, but it looks like I have to edit the database.yml file so it points to where my databases will be. I change them to point to `/Users/jergason/Dropbox/prince_lab_stuff/rails-metric_site/db/rails_metric_site_[environment].db`, where `[environment]` is test, development, production, ect. Time to give it another go.\r\n\r\n    $ bundle exec rails s\r\n\r\nNow the server starts, but I get:\r\n\r\n    DataObjects::ConnectionError in Pages#home\r\n    \r\n    Showing /Users/jergason/dropbox/prince_lab_stuff/rails-metric_site/app/views/alerts/_alert_num.html.haml where line #2 raised:\r\n    \r\n    unable to open database file.\r\n\r\nOkay, looks like the database files are not created.\r\n\r\n    #see what install-related rake tasks exist\r\n    $ bundle exec rake -T\r\n\r\nI see `rake db:automigrate`, which looks promising.\r\n\r\n    $ bundle exec rake db:automigrate\r\n    Cannot find or read /Users/jergason/dropbox/prince_lab_stuff/rails-metric_site/config/newrelic.yml\r\n    rake aborted!\r\n    unable to open database file\r\n    \r\n    Tasks: TOP => db:automigrate\r\n    (See full trace by running task with --trace)\r\n\r\nRunning with --trace is not very helpful. I don't really know where to go from here. Have you tried installing from scratch recently? I am on a Mac, which hopefully shouldn't affect things, but might be a culprit.","assignee":null,"id":2424652,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":3,"title":"Can't figure out how to install for development.","closed_at":null,"html_url":"https://github.com/princelab/rails-metric_site/issues/3","url":"https://api.github.com/repos/princelab/rails-metric_site/issues/3","milestone":null},"action":"created","comment":{"created_at":"2011-12-02T18:04:57Z","updated_at":"2011-12-02T18:04:57Z","user":{"gravatar_id":"6b3da28d67c0c30048665399688f0fdc","id":72027,"url":"https://api.github.com/users/jergason","avatar_url":"https://secure.gravatar.com/avatar/6b3da28d67c0c30048665399688f0fdc?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jergason"},"body":"I had my path to the db wrong. :(. At least this issue documents the install process a little now. I never would have guessed I needed to build and install the archiver gem without this. I'll have a go at adding this to the readme once I get it up and running.","id":2993470,"url":"https://api.github.com/repos/princelab/rails-metric_site/issues/comments/2993470"}}