confused...using svn, capistrano, and remote server????

Coda Hale has some extensive directions on this:
http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/

Basically, you need to install teh capistrano gem locally, make sure
that both localhost and external host have svn installed, create a
repository that is accessible by url and not file:/// and then go from
there.

If you don't want to deply with a cluster, I'd follow the instructions
on the manual:
http://manuals.rubyonrails.com/read/book/17

Sn in direct response to your questions:

No. Capistrano does the svn checkout. The process would be as follows.
This assumes that your local source code is already under version
control and you have a repository that is accessible from your
deployment host via svn:// or http://

1. Setup Capistrano locally (including deploy.rb)
2. Do an svn checkout to get the login/password cached by SVN on the
host. Delete this checkout.
3. Setup your database.yml file to match yoru deployment machine
4. svn commit -m "setting up for capistrano deployment"

You can then either cold_deploy or use setup to get the directory
structure setup.

At that point you should be able to cap deploy and get it working.
Again, Coda's directions are pretty good if youw ant to deploy wiht a
cluster, otherwise go for the rails manual.

Note: if you're looking to use 301 redirects on old URLs, and you are
deploying with a cluster, you can't place them in .htaccess. I wrote
an extensive article on it here:
http://www.boboroshi.com/2006/12/20/301-redirects-rails-capistrano-and-mongrel_cluster

ENjoy!

Has anyone written directions on how to setup up apache/capistrano/mongrel_cluster on a server with plesk 8.1 (our customers need to be able to manage their own e-mailaddresses in a nice interface etc.)? There are a few vague threads hanging around here and there, but none of them have helped me any further. Our server is running Ubuntu 6.06 LTS, Apache 2.0.55, Ruby 1.8.5, MySQL 5.0.21.

I've been able to get my Rails app up and running by doing it manually and hacking into the /var/www/vhosts/mydomain.com/conf/httpd.include file. This shouldn't be the way to go, as the first lines of the httpd.include file clearly state:
# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
# MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
# FOLLOWING FILE(S):
# /var/www/vhosts/mydomain.com/conf/vhost.conf
# /var/www/vhosts/mydomain.com/subdomains/<subdomain-name>/conf/vhost.conf

However, I've tried just about any possible configuration in the vhost.conf file, but haven't gotten it to work.

Best regards

Peter De Berdt

Yeah, I know, I’ve already installed Apache 2.2 in /usr/local/ (instead of the default ubuntu location) in order to not overwrite the default installation. I guess now I’d have to change the init.d apache2 script to pick up the version, but I was wondering if anyone could give me pointer so that I don’t screw up the plesk installation.

Best regards

Peter De Berdt

koloa wrote:

hi boboroshi,
i think i understand now after learning more about svn last night. but what i kind of dont understand is this....when i do a checkout on my remote server , that basically puts what the latest remote server version of my app onto my local machine. if i then delete that copy on my local machine, apply capistrano to a local rails app, how does capistrano know to check it into where the remote server rails app resides and put that as the latest?

if my svn is on my local, what is the purpose of having another svn on the remote?

When boboroshi wrote "make sure that both localhost and external host have svn installed", (s)he meant that both must have the svn *client* installed. The SVN repository could be anywhere on the Internet.

regards

   Justin Forder