You will need postgres installed on your system (skip to step 3 if you've already done this):
brew install postgres
Follow the Hombrew instructions (very important):
brew info postgres
Create a user for the database:
createuser sass-registry
Create the databases:
createdb -Osass-registry -Eutf8 sass-registry_development
createdb -Osass-registry -Eutf8 sass-registry_test
Install the pg gem:
sudo env ARCHFLAGS="-arch x86_64" gem install --no-ri --no-rdoc pg
Clone the repository:
git clone git@github.com:sass/sass-registry.git
Bundle install:
bundle install
Bootstrap the database:
bundle exec rake db:migrate
As development progresses you may need to run migrations to keep your database up to date:
bundle exec rake db:migrate
We use Heroku for deployment. You will need to be a collaborator on Heroku and the Heroku toolbelt must be installed. If you don't have the Heroku toolbelt, go here and follow the instructions:
After that login to Heroku from the command line:
heroku login
Now you need to setup Heroku as a remote:
git remote add heroku git@heroku.com:sass-registry.git
To deploy, the only thing you need to do from now on is:
git push heroku master