PDA

View Full Version : Deploy with Capistrano


palb
08-14-2007, 04:01 PM
I'm a newbie to Capistrano, as well as svn. I understand that I can deploy to lsws without svn. Is that right? At least according to this:

http://www.mathewabonyi.com/articles/2006/10/28/litespeed-lsapi-capistrano

What I don't understand is why 'set :svn_username' and 'set :repository' has to be set

David
08-14-2007, 04:09 PM
Yes, you can deploy without svn. You won't need to set :svn_username, but make sure to set the :scm variable and format the repository correctly for your source control choice.

palb
08-14-2007, 04:17 PM
Yes, you can deploy without svn. You won't need to set :svn_username, but make sure to set the :scm variable and format the repository correctly for your source control choice.

So I need source control?

David
08-14-2007, 04:52 PM
I'm not a Capistrano expert, but, yes, I believe that each recipe needs a repository defined, and if you don't set :scm, it'll default to svn.

palb
08-14-2007, 10:55 PM
I'm not a Capistrano expert, but, yes, I believe that each recipe needs a repository defined, and if you don't set :scm, it'll default to svn.

Ok. Thanks. I'll try svn again.:) I've been testing it before, but found it a bit confusing, and not that essential for a single developer like me.

What I never understood is the connection and concept between the repository, my app director and the VH_root. When a visitor comes in via the browser, what directory do they enter? Where do I upload my files and what do I set in Litespeed VH settings?

David
08-15-2007, 10:42 AM
Ok. Thanks. I'll try svn again.:) I've been testing it before, but found it a bit confusing, and not that essential for a single developer like me.

What I never understood is the connection and concept between the repository, my app director and the VH_root. When a visitor comes in via the browser, what directory do they enter? Where do I upload my files and what do I set in Litespeed VH settings?

The repository is where the files are stored and this is source control managed. The app directory refers to the checked out version which you are using to run your site. VH_root is the virtual host root, so that is the directory on your server that corresponds to the root directory when you access your domain.

Please take a look at the Capistrano manual if you need help installing Capistrano: http://manuals.rubyonrails.com/read/chapter/97