-
If you aren't already using RVM, it's recommended you start.
-
Follow the instructions for installing RVM as a single user.
-
Create a
~/.gemrc
file with the following contents:gem: --no-ri --no-rdoc
-
Execute
rvm notes
for information on needed packages for installing rubies. -
Install Ruby 1.9.2 with
rvm install 1.9.2
-
-
Fork the project to your own GitHub profile and clone it:
$ git clone [email protected]:YOURUSERNAME/TrapQueue.git
-
Change directories to your cloned repo:
$ cd TrapQueue
-
If you're using RVM, you'll be asked if you want to execute the project's
.rvmrc
. Inspect the contents and say "yes." -
Create a new gemset:
$ rvm gemset create TrapQueue
-
Change the current Ruby to this gemset:
$ rvm use 1.9.2@TrapQueue
-
Install bundler with
gem install bundler
. -
Run
bundle
in the root of the project to install required gems. -
Copy
config/database.yml.example
toconfig/database.yml
and edit the settings to fit your setup. -
Run
rake db:create
andrake db:migrate
to setup your database. -
Run
rails s
and visit http://localhost:3000/ to see if everything's working.
When new changes are made, you'll have to merge them into your fork.
-
Configure remotes:
$ git remote add upstream git://github.com/SinCityRuby/TrapQueue.git
-
Pull in upstream changes:
$ git fetch upstream $ git merge upstream/master
For more detailed information, see the GitHub fork a repo help page.
Run bundle
, rake db:migrate
, and restart your web server.