Capistrano & Subversion setup

Subscribe to Capistrano & Subversion setup 1 post, 1 voice

 
Avatar Alan 1 post

Hi,

I’m trying to deploy my rails app. I’d like to use Capistrano and mongrel + Nginx.

I’ve read the documentation on the wiki and I’ve finally got to read the Capistrano manual (it’s been down for 3 or 4 days). The problem is everything seems to be fitted for lighttpd.

I’m just starting to use subversion, so everything for deployment is new to me. I’m just going to try a dummy rails app to deploy, figure out the steps and then do the real one.

So I’ve created my directory, run rails for the basic skeleton. Then in the dir ran:

$ cap—apply-to . AppName

where the AppName is anything I want

Normally I’d then go into config/deploy.rb and change settings. I’m still unclear with which ones to change and to what. That’s probably my biggest problem. But before I get to that, I need to create a repository for my rails app.

So I want to do an in-place import correct? So in the app’s dir:

$ svn co /opt/local/svn/apprepos .

^ is that syntax right? the period in the right spot? or will this not work at all with Capistrano because it’s not using svn+ssh ? I don’t really need to use ssh on my own mac.

After that I want to remove the log and tmp files so:

$ svn rm log

$ svn propset ‘svn:ignore’ “tmp log” .

$ mkdir log

$ svn commit -m “Initial code import”

I think that’s it for svn. Does any of this make sense? I’ll hold my Capistrano specific questions until I get this part sorted out. Thanks!