Hello all! I'm trying to catch up to latest & greatest in the Rails world (I've been working in Rails for years, but I was still on Cap 1 and using Apache + FastCGI. And subversion.)
Anyway, now that I'm on Cap 2.3, Git, and trying out mod_rails, I have a question about recommended organization procedures. I run my own hosting company and a lot of my rails projects are simply the sites for customers. I have full access & control over the server (since it's mine). I'm trying to figure out at a high level what the best way to organize everything would be. For example, Let's say that I have two clients: clientone and clienttwo. Each are on my app server: appserver. Each has a single rails project: projectone and projecttwo. For now, I've got my git remote repository on the appserver. I see two ways to handle deployments: Way #1: set up SSH access for each client (maybe jailed shell) and use that for each deployment (i.e. use user "clientone" for deployment of "/home/clientone/projectone") Way #2: set up a "deploy" user account on the server and use that for every deployment. I think either would work, but they each have pros & cons. I'm leaning more toward Way #2, but how would I manage the file activities such that user "deploy" is creating directories & symlinks and such but in the user "clientone". Is that where sudo comes in? Another question: if the remote git repository is on the same machine that I'm deploying, to, do I still need to access it via: [EMAIL PROTECTED]:/location ? or just /location ? And what needs to be set up user-account-wise with that? Most of the cap tutorials I've seen are for people who have their own hosting account, with or without access to the server. In my case, I've got multiple client hosted accounts and I'm trying to figure out the best way to manage them as multiple. I welcome any thoughts/pointers/references. -Danimal --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
