Skip to content

Drive Less Challenge

ultrasaurus edited this page May 22, 2011 · 5 revisions

Development setup

  1. Clone repo:
git clone git@github.com:blazingcloud/driveless.git
  1. The .rvmrc file (currently) specifies Ruby 1.8.7-p330 with a gemset called Driveless. Make sure you can use ruby-1.8.7-p330@driveless. 2a. gem install bundler (if you need it)
  2. Create a database.yml file. You can use SQLite in development for most things, but you may get some errors. Since we're deploying on PostgreSQL you might want to use that instead.
  3. Install gems, migrate your databases, and run specs (they should all pass):
bundle install
rake db:migrate
rake db:seed
RAILS_ENV=test rake db:migrate
RAILS_ENV=test rake db:seed
rspec spec # Do not use 'rake spec'; the rake task will clear out the test database without re-seeding.

DON'T EDIT CSS DIRECTLY

We're using sass!

compass compile
compass watch

Heroku staging

If you have more than one Heroku account, you might want to checkout the accounts plugin.

  1. Bring your local staging branch up to date with what you want to deploy. Consider adding a tag.
  2. Add a remote for staging (this example assumes you have an entry for heroku.bc in your .ssh config file):
git remote add staging git@heroku.bc:driveless-staging.git
heroku rake db:migrate --app driveless-staging
  1. Deploy to staging:
git push staging staging:master

Clone this wiki locally