I finally wrote a recipe for using Switchtower on Dreamhost.
It’s quite short, but works well. You have to use svn+ssh if you use the Subversion provided with Dreamhost. However, it’s not too bad if you are a solo developer.
If you use an external Subversion repository, you could easily edit the receipe (I use my TextDrive respository for most of my sites).
Thanks for the info! I’ll have to look into this very soon.
Hold on to your chairs. Geoffrey continues to rock the world.
Thanks much, I’ll be using this shortly.
A couple things I had to change: I had to remove my server name from all the paths, svn+ssh:// only has two backslashes, not three, and I had to remove my application directory such as ”~/application.domain.com” before I ran the rake commands in order for them to function properly. Hope this helps someone!
Yes this was extremely helpful. Couple questions though.
I’m having no luck with rold :db. I was guessing there is no SSH processing running on my MySQL server (which is a seperate server for my DreamHost account).
Anyone else have any issues with this portion?
Also, I don’t seem to have a ‘reaper’ script? Did anyone else have problems with this portion of deploy.rb?
desc “Restart the FCGI processes on the app server as a regular user.” task :restart, :roles => :app do run ”#{current_path}/script/process/reaper” end
Made some progress on this.
I’m still not sure if role :db is working. I’m guessing it’s only involved if there is a migration to do. I’ve tried SSH’ing to my MySQL server with no luck.
I figured out that reaper is a script included with Rails. The reason I was seeing problems with it was permissions.
Also I had to update dispatch* permissions.
Here’s what I had to add to deploy.rb:
desc “set some permissions” task :after_update_code, :roles => :app do run “chmod +x #{release_path}/public/dispatch” run “chmod +x #{release_path}/script/process/” end
I came across this recently and it was a huge help, thanks!
I took the time to get SwitchTower running on my DreamHost account today. I ran into several problems, but it now works great. Details at my blog…
how do you people run darcs on dreamhost? when i try to use it, it is always killed automatically after a while because of its cpu usage…
umm, sorry. wrong post…