The recording is approximately 3 hours long so show your thanks to those who are making it avaliable to you by jumping onto the torrent if you’re inclined.
You can read the complete changelog, but here’s a quick overview of some of the most notable changes:
- Handle SSH password prompts formatted like “someone’s password:”
- Allow the sudo password to be reentered if it was entered incorrectly
- Errors during checkout are now caught and reported early
- Avoid timeouts on long-running commands
- Add a small sleep during command processing to give the CPU a rest
- Rake tasks should work much more nicely on Windows (you’ll need to do
switchtower --apply-to /path/to/appto update, keeping your
There is now an
ssh_options hash that you can use in your recipe files to set custom SSH connection options, like setting a non-standard port to connect on:
ssh_options[:port] = 2345
Allow svn checkouts to use
export instead of
If you don’t want to use an
svn co to checkout your code, you can set the
:checkout variable to
:export, and SwitchTower will use
svn export instead.
set :checkout, :export
This variable defaults to
There is now an
update_current task that just does an
svn up on the last-deployed release. This is useful for trivial updates, like when a template changed.
You can easily remove unused releases from your deployment directories with the
cleanup task. It will (by default) keep the 5 most recent releases, and delete the rest.
SFTP for file transfers
Net::SFTP is now used (if it is available) for file transfers. This should make transferring large files more robust, as well as allow binary characters in files.
You can now set the
:restart_via variable to
:run, if you need to have the
restart task use
run instead of
set :restart_via, :run
This defaults variable to
This is fantastic news! Paul Querna and Garrett Rooney deserves much praise for embarking on this important quest to restore our faith in Apache as a worthy web server for applications. Not only will this mean that FCGI is no longer a bastard child on Apache 2.x, but also that it’ll have active maintenance and people to turn to if things are sour.
Viva la Apache!
Street Easy is a sweet new mash-up of Google Maps that’s running Ruby on Rails to mock you for all the places in New York you can’t afford to buy. Yet. Before you’ve launched your Web 2.0 mash-up and sold it to Yahoo. Wait a minute. It’s RECURSIVE!
Kidding aside, this is a very nice looking site done by Sebastian Delmont and friends. Check it out.
Having problems getting SwitchTower to work? So was Ryan Heneise, until he discovered that he wasn’t using a supported shell on the remote host. If the remote hosts are reporting syntax errors when you try to execute a task, make sure you’re using a POSIX-compatible shell (although hopefully this restriction will be lifted in the near-ish future).
James Duncan Davidson has started a great series of recipes on deploying Rails applications. In Real Lessons for Rails Deployment, he examined the different options you have and some of the pitfalls you should watch out for.
In Deploying Rails with LightTPD, James goes specific and tells you exactly how to get Rails going on lighttpd using SwitchTower for deployment.
This is great stuff and with more than a couple of deployed Rails applications under his belt, James is in a great position to share his knowledge. Can’t wait to read the further installments.
The Peace Library is an online index of Conflict Transformation & Peacebuilding information featuring research papers, reports, and news related to the Sri Lanka peace process put together by the non-profit web media company InfoShare.
Yet another nice app riding the Rails.
37signals has announced two upcoming products: Campfire and Sunrise. This is significant for Rails development because all 37signals applications has historically been the main source for new features in Rails.
Sunrise has already spawned a good number of features for 1.1. There are the polymorphic associations and join model support as well as form_for/fields_for. See the Pursuit of Beauty presentation for code examples on those. Campfire is pushing the envelope on RJS (more on that later).
I’ll try to make the connection between new features in Rails and their origin in 37signals applications to make their usage more clear. Stay tuned.
Avi Bryant is the creator of Seaside, the Smalltalk web-framework built on continuations, that has been shining light on alternatives to traditional MVC- and request/response-based frameworks. I heartily recommend taking a look. It might not fit your brain (it didn’t mine), but its sure to expand it.
Mike Clark declares his love for SwitchTower, the distributed deployment manager built for Ruby on Rails. He shows off a few fancy tricks in the love letter, such as how to turn web access on and off when you go down for upgrades.
I’m with Mike on this lovefest. I couldn’t imagine operating the 37signals cluster without it. Jamis Buck deserves another round of applause for this fantastic piece of software.