mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Update Contributing section to include initialization and updating the submodules
Since it's not obvious that edge Sinatra requires its own version of Rack, add instructions on how to do so. Also include (more) detailed instructions for first time cloning, updating an existing clone, and using edge Sinatra in an app.
This commit is contained in:
parent
d22de907a2
commit
4c02878d16
1 changed files with 14 additions and 2 deletions
16
README.rdoc
16
README.rdoc
|
@ -449,12 +449,24 @@ Options are:
|
|||
|
||||
= Contribute
|
||||
|
||||
== First Time: Cloning the sinatra repo
|
||||
|
||||
cd where/you/keep/your/projects
|
||||
git clone git://github.com/bmizerany/sinatra.git
|
||||
cd your_project
|
||||
cd sinatra
|
||||
git submodule update --init
|
||||
cd path/to/your_project
|
||||
ln -s ../sinatra/
|
||||
|
||||
== Updating your existing Sinatra clone
|
||||
|
||||
cd where/you/keep/sinatra
|
||||
git pull
|
||||
git submodule update --init
|
||||
|
||||
== Using edge Sinatra in your app
|
||||
|
||||
at the top of your sinatra.rb file
|
||||
at the top of your sinatra_app.rb file:
|
||||
|
||||
$:.unshift File.dirname(__FILE__) + '/sinatra/lib'
|
||||
require 'sinatra'
|
||||
|
|
Loading…
Reference in a new issue