Prev | Current Page 462 | Next

Brad Ediger

"Advanced Rails"

To Subversion, the
directory is just another set of files in your project. This means that updates are fast,
as they only talk to one server. You also only get external updates when you ask for
them (piston update).
Project Structure | 311
First, install Piston and convert your existing svn:externals to Piston-locked
directories:
$ sudo gem install --include-dependencies piston
$ piston convert
You can now lock to edge Rails:
$ piston import http://svn.rubyonrails.org/rails/trunk vendor/rails
Installing plugins is simple if you know the repository URL:
$ piston import \
http://activemerchant.googlecode.com/svn/trunk/active_merchant \
vendor/plugins/active_merchant
Remember to manually execute the commands in install.rb if it does anything special;
script/plugin would do this for you, but Piston doesn??™t know or care that you
are installing a Rails plugin.
Piston-controlled directories can be updated all at once with piston update, or one at
a time with piston update vendor/plugins/active_merchant.
Rails Version
If a Rails distribution is unpacked in vendor/rails under the application root, it will be
used. If vendor/rails is not present, Rails will look for an installed rails gem matching
the specified RAILS_GEM_VERSION (usually specified in config/environment.rb). It is
usually best, for the sake of predictability, to have the Rails code unpacked in
vendor/rails.


Pages:
450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474