small medium large xlarge

Errata for Deploying Rails Applications

 

The latest version of the book is P1.0, released over 8 years ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P1.0 (25-Apr-11)
#46967
PDF page: Charl
Paper page: Charl

��������
, --agikRWrCvVucIfdC

  • Reported in: P1.0 (20-Jan-12)
#48547
PDF page: eMLvR
Paper page: FHJvf

Real brain power on display. Thanks for that awnser!--23.5

  • Reported in: B4.0 (11-Apr-08)
#31639
PDF page: 19

">>>>>>> .r32877"

Spurious leftover from svn merge?--Brian Candler

  • Reported in: P1.0 (07-Jun-08)
#32303
Paper page: 21
at the bottom of the page, i think the URLs shown for the trunk and the branch should include "svn" rather than "deployit": svn copy --message="Cre...more...
  • Reported in: P1.0 (07-Jun-08)
#32307
Paper page: 22
In the merging stable branches section at the top of page 22 in the paper edition of the book, there is a directory path context switch that could use...more...
  • Reported in: P1.0 (08-Aug-08)
#33801
PDF page: 23
The code block given for creating the initial SVN directories is misleading. It reads: $ svn mkdir --message="Initial project layout" ←֓ file:///...more...
  • Reported in: B4.0 (04-Jun-08)
#32270
PDF page: 23

"We use svn import with the --force option..." does not match up with any code snippet.
--Wayne Conrad

  • Reported in: P1.0 (13-Oct-08)
#35199
PDF page: 24
The command: svn mkdir db/migrate tmp doesn't work on my server because there is no 'db' directory yet. svn: Can't create directory 'db/migrate': ...more...
  • Reported in: B4.0 (10-Apr-08)
#31638
PDF page: 24
The svn mkdir --message "Initial project layout" command is missing the name of the directory that you want to make. I assume that you want the use...more...
  • Reported in: B4.0 (04-Jun-08)
#32271
PDF page: 25
"Database Structure Dumps During Testing: When you run the tests, Rails will dump the development database's structure to db/schema.rb(3)." It's no...more...
  • Reported in: B4.0 (26-Apr-08)
#31736
PDF page: 25
Rails 2.0.2 adds the tmp directory as well as tmp/cache tmp/pids tmp/sessions and tmp/sockets. The svn mkdir command errors when using the command spe...more...
  • Reported in: B4.0 (11-Apr-08)
#31640
PDF page: 27
"I discuss this solution in the (as yet) unwritten sect.vc.deploy.using-capistrano-for-deployingdatabase.yml" If this is the final beta before publ...more...
  • Reported in: P1.0 (10-Aug-08)
#33859
PDF page: 28
The command given to create a stable branch doesn't work. The given command is: $ svn copy --message "Create the stable branch" ←֓ file:///home/e...more...
  • Reported in: B4.0 (16-Apr-08)
#31674
PDF page: 30

$ cap deploy_with_migrations

should read:

$ cap deploy:migrations--sideshow

  • Reported in: P1.0 (07-Jun-08)
#32306
Paper page: 35
Page 35, under the N+1 Problem: The code section lists: friends = Person.find(:all, :conditions => some_friend_connections) @friend_addresses =...more...
  • Reported in: B4.0 (04-Jun-08)
#32272
PDF page: 38
typo: "has_many()has_one()," should be "has_many(), has one()," style: "belongs_to(), and has_and_belongs_to_many()" doesn't need the comma ...more...
  • Reported in: P1.0 (21-Sep-08)
#34595
PDF page: 39

"Rails is a dynamic, interpreted language." Rails is the framework not the language.--Patrick Ledbetter

  • Reported in: P1.0 (29-Aug-09)
#40606
PDF page: 71

Sorry, Please ignore my previous error post
i mistype Guess with guess

thanks
Ami--Ami Mahloof

  • Reported in: P1.0 (16-May-10)
#43272
PDF page: 82
On my freshly installed Ubuntu server, the command (ran as root) /etc/init.d/sshd reload produced : -su: /etc/init.d/sshd: No such file or...more...
  • Reported in: B4.0 (15-May-08)
#32012
PDF page: 83
Shouldn't the authme function be function authme { ssh $1 -p 8888 .... } Just following on from the suggestion above that you should change...more...
  • Reported in: P1.0 (31-Jul-08)
#33429
PDF page: 83
The authme function will only work if the .ssh directory already exists on the remote server. Also, ssh is very picky about permissions on this direc...more...
  • Reported in: P1.0 (31-Jul-08)
#33430
PDF page: 83
On Ubuntu, and probably other distros, an ssh-agent is started for you when you log into XWindows. You can just call ssh-add. If you call ssh-agent,...more...
  • Reported in: P1.0 (31-Jul-08)
#33431
PDF page: 84

You mention that you should have ruby 1.8.6 or higher, but the command output shows 1.8.4.--Sam Umbach

  • Reported in: B4.0 (23-Apr-08)
#31702
PDF page: 85

root# sudo gem install rails --no-rdoc --no-ri

Is sudo actually needed? We are already root...--Hywel Mallett

  • Reported in: P1.0 (31-Jul-08)
#33432
PDF page: 86

You mention the include-dependencies option but don't use it in the example.--Sam Umbach

  • Reported in: P1.0 (31-Jul-08)
#33433
PDF page: 86

The formatting for line continuation is messed up here and elsewhere in the book.--Sam Umbach

  • Reported in: P1.0 (31-Jul-08)
#33434
PDF page: 87

zliblg was already installed in an earlier step.--Sam Umbach

  • Reported in: P1.0 (05-Sep-08)
#34348
PDF page: 88
On page 88 there is a guide of how to install nginx. After installing nginx you need to reboot the system (or something similar). Until then the "ngin...more...
  • Reported in: P1.0 (13-Aug-08)
#33956
PDF page: 92
The word 'server' is spelled wrong in the sentence: You simply found the files you needed to copy, and you used Subversion or FTP to push the whol...more...
  • Reported in: P1.0 (17-Aug-08)
#34098
PDF page: 104
On an earlier page you recommend setting scm_username and scm_password, but then you tell the user to cache the subversion credentials. This sends a ...more...
  • Reported in: B4.0 (21-Apr-08)
#31688
PDF page: 119
"Do a Push Deploy Instead of Pull" There is a problem with "set :deploy_via, :copy" which caused me a lot of head scratching. SFTP was locking up w...more...
  • Reported in: B4.0 (13-May-08)
#31993
PDF page: 121
Have you thought about using 'latest_release' instead of 'release_path' for your link_images task? From Capistrano source code: "some tasks, like sym...more...
  • Reported in: B4.0 (07-May-08)
#31922
PDF page: 128
At the bottom of the page where it talks about starting, restarting and stopping the mongrel clusters, I believe there should be a space between "mong...more...
  • Reported in: B4.0 (18-Apr-08)
#31683
PDF page: 133
The cap recipes for restarting, stopping and starting via monit don't work as given (seem to hook into the wrong tasks). The following ones do: nam...more...
  • Reported in: B4.0 (14-May-08)
#32003
PDF page: 143
The use of mongrel introduces an issue with multiple processes writing to the log file. It would be helpful to describe configuration of syslog.--Joh...more...
  • Reported in: P1.0 (21-Nov-08)
#36039
PDF page: 148
DBAs in my company (who fortunately do not run my stuff), claim that async multi-master is not a supported configuration for MySQL. I did setup this ...more...
  • Reported in: B4.0 (29-Apr-08)
#31824
PDF page: 170

I'd also include the MIME types application/xml application/xhtml+xml text/javascript text/css for the DEFLATE section.--Seth Ladd

  • Reported in: B4.0 (22-Apr-08)
#31701
PDF page: 176

Space missing: or/foo in 3rd paragraph.--John Bito

  • Reported in: P1.0 (11-Aug-08)
#33932
PDF page: 177
The bottom of page 177 reads, "When Capistrano deploys Rails apps, Capistrano appends a time stamp to the URL so that clients will think they are new ...more...
  • Reported in: B4.0 (23-Apr-08)
#31703
PDF page: 190
"In the next chapter, I’ll dive into some basic performance topics." The next chapter is Deploying on Windows - Performance is the chapter after that...more...
  • Reported in: P1.0 (25-Sep-08)
#34632
Paper page: 195
pen -f 80 localhost:80 produces an error: Number of simultaneous connections to (sic) large. Maximum is 27, or re-build pen with larger FD_SETSIZE ...more...
  • Reported in: P1.0 (17-Aug-08)
#34101
PDF page: 249
The same code is listed for both the view and controller (and it's ERB, so I assume it's the view). What is the appropriate controller code for time-...more...
  • Reported in: P1.0 (17-Aug-08)
#34102
PDF page: 250
"If you need to work with cached content in production temporarily, you can just set the appropriate cache option." should be "If you need to work wit...more...