MainStMission/food-pantry-manager — pull request #13 by jordanbyron (2012-09-06 15:45:16+00:00)
Title: Revamp rake setup

Hi Everyone,

Since you folks have been doing an amazing job working on this project, I wanted to do a little something to help you attract new developers and make it super simple to get them setup. I saw @semmons99 had a basic `rake setup` task created, but I thought we could do better. So here is my revamped setup rake task which:

1. Sets up both `database.yml` and `secret_token.rb` files
2. Creates, migrates, and seeds the database
3. Optionally runs the test suite

Here is a screenshot of the output:

![rake setup](http://i.imgur.com/WWqW5.png)

Please also note that this pull request removes the checked in `secret_token.rb` initializer. This file should always be ignored for security reasons. `rake setup` will automatically generate a fresh secret token if not included.

Additionally I removed the bundler related steps from the original `rake setup` task because I don't believe rake will load unless both bundler is installed and `bundle install` has been run. If that isn't the case let me know and I can fix that part up.

@coreypurcell / @tbrooke is this app being deployed to heroku or some other hosting provider?

Thanks! :heart: