Alpha Blue wrote:
> Thanks for the follow-up Marnen.  Yeah I like to use parens and quotes 
> for emphasis - I'd much rather use quotes - but I don't see anything 
> about that here. 

Neither is correct for English.

>  Anyhoo, that's another issue altogether.

So it is. :)

> 
> So, here's my logic and understanding of this subject and yes, it's not 
> very large.. heh.
> 
> From what I understand, Capistrano is the tool that is used to deploy 
> the application to your server.  It has nothing to do with 
> apache/passenger etc.  correct?

Yes. Cap just automates an SSH session to your server.

> 
> Secondly, passenger is a front-end piece and apache is the back-end 
> piece of the server setup correct?  If I didn't want to use passenger, I 
> could use mongrel in it's place?  Not saying I would do this but just 
> clarifying for understanding..

Also correct, although you'd have to play around with Apache proxies if 
you did that.

You won't go far wrong if you think of Passenger as the Rails equivalent 
of mod_php.

> 
> In order of priority configurations:
> 
> Apache first
> Passenger Second
> .. that handles the server end?

Right.  (And Ruby EE if you're using it.)

> 
> I believe where I'm getting confused is that I'm looking at all of it at 
> once and it's making my head hurt a bit.
> 
> Is there documentation on setting up apache with rails?  Prepping?  Link 
> please.

Read the Passenger docs.

> 
> Is there documentation on setting up passenger with apache? Prepping? 
> Link please.

Read the Passenger docs.

> 
> How does capistrano tie in with git and my server?  For instance, I see 
> the following as an example configuration:
> 
> set :application, "ncaastatpages"
> # GITHUB BELOW
> # Set Putty True to instantiate a passphrase call
> default_run_options[:pty] = true
> # Set the git repository
> set :repository,  "[email protected]:myuser/ncaastatpages.git"
> # Specify which subversion or repository SCM to use
> set :scm, :git
> # Set your GIT password
> set :scm_passphrase, "mypassword"
> # Set your GIT user (this might need to be the same all the way around)
> set :user, "myuser"
> # If you're using your own private keys for git
> # ssh_options[:forward_agent] = true
> # Set the branch type
> set :branch, "master"
> # Shallow cloning will do a clone each time, but will only get the first 
> tree, not all the parents trees, too.
> # set :git_shallow_clone, 1
> # If you're using git's submodule support for edge rails or merb, set 
> this guy to make sure the submodules "git" checked out.
> set :git_enable_submodules, 1
> # Set remote cache you want to only force new changes only, fetching 
> changed data
> set :deploy_via, :remote_cache
> 
> # Set the role for your web server
> role :web, "ncaastatpages.com"
> 
> I only see one repository (for my current git repo), but how does it 
> know where to send it to?  I.e. where in capistrano do you tell it where 
> to deploy to?  I don't see anywhere in here where I am setting my server 
> and the port. 

That's what role :web does.

> I use a different SSH port so I need to set that 
> somewhere too.

Please read the Cap docs.  I don't try to keep all the config variables 
in my head, so I can't really help you.

> 
> I've read the documentation but it doesn't appear to talk about this. 
> I'm not using Ruby EE by the way - just a heads up.

Why not?

> 
> I commented everything myself above to show you what I believe is 
> happening.  If I'm incorrect, please let me know.  Let's bring this 
> topic closer to capistrano usage first and I'll work with one piece and 
> iron out the others after I get capistrano logic down.

Read the Cap docs.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to