I got it working. Capistrano is amazing.
To recap, there are a couple of gotchas with Dreamhost:
1) As you say, the DreamHost control panel creates the current
directory if you specify current/public when you set up the
(sub)domain. You must delete this somehow, whether by hand or as part
of the deploy script.
2) The deploy_to variable in Deploy.rb must contain an absolute path.
In my case, I was deploying to a subdomain folder inside the main
account folder. So my path has to look like:
/home/MY_ACCOUNT_NAME/MY_SUBDOMAIN
The "current" symlink target path is built by doing something like
this:
deploy_path + releases/XXXXXX
Dreamhost is very flexible in letting you set up your directory
structure, which makes it tough to come up with a boilerplate
suggestion for this path.
If you can't traverse the symlink by doing a cd in SSH, that means the
symlink has an unresolvable target path. Do an "ls -l" in the
directory that contains the "current" symlink to see a display of the
symlink's target path. This must be a resolvable absolute path.
3) I don't seem to need this custom restart task that everyone
suggests:
task :restart, :roles => :app do
run "#{current_path}/script/process/reaper -d dispatch.fcgi"
end
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---