-
Notifications
You must be signed in to change notification settings - Fork 8
Drive Less Challenge
ultrasaurus edited this page May 22, 2011
·
5 revisions
- Clone repo:
git clone git@github.com:blazingcloud/driveless.git- 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)
- 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.
- 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.We're using sass!
compass compile
compass watch
If you have more than one Heroku account, you might want to checkout the accounts plugin.
- Bring your local staging branch up to date with what you want to deploy. Consider adding a tag.
- 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- Deploy to staging:
git push staging staging:master