Hi all!
I’m finally beginning to figure out Capistrano deployments. I get the
feeling that it runs much more smoothly from non-Windows machines.
After
numerous iterations and head-scratching I think I’m finally getting
consistent results, but not everything is working the way I’d like.
First, when I run “cap deploy” everything works ok all the way to the
very
last task - I get this error message:
- executing
“/home/tdonaghe/delipaste.icuo.us/current/script/process/reaper”
servers: [“delipaste.icuo.us”]
[delipaste.icuo.us] executing command
** [out :: delipaste.icuo.us] Couldn’t find any process matching:
/home/tdonagh
e/delipaste.icuo.us/current/public/dispatch.fcgi
command finished
Since fast-cgi isn’t running I get a “Rails application failed to start
properly” error.
So, here’s what I’ve kinda figured out how to fix things. I’ve learned
that
some kind of way when you deploy from Windows, many times you’ll get
some
sort of invisible bad characters (line returns maybe?) in your
public/dispatch.fcgi file. So, when I do a deploy, I navigate down to
my
app/current/public folder and try ./dispatch.fcgi. I get an error
message
statement “:No such file or directory.” Then I do a “nano
dispatch.fcgi” to
edit the file. When the file opens, it shows a message saying that it’s
converted the file from DOS format (a clue I think!). So, I make a tiny
modifcation like adding a space in front of a comment and then save.
Now, when I do ./dispatch.fcgi again I get some output. So, I do a
“killall
-9 dispatch.fcgi.” Now, if I open a new browser window and navigate to
my
app (up on the server) I get the results that I expect.
Questions:
What’s going on?
Is there a way I can deploy from my windows box and NOT have a corrupted
dispatch.fcgi file? I have to edit it so that the shebang works on
Dreamhost.
Is there some magic :task I can add in my deploy.rb file for Cap?
Is this one of the reasons most people develop Rails apps on macs?
As usual, any help will be GREATLY appreciated!
Thanks!
Terry (TAD) Donaghe
http://www.tadspot.com