Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Capistrano
PostPosted: Wed Sep 29, 2010 7:54 pm 
Offline
Senior Newbie

Joined: Wed Sep 29, 2010 6:06 pm
Posts: 11
Is there a good capistrano deployment documentation for rails apps on linode?

I am struggling with figuring out the deployment user, ssh authentication, git and permissions.

Thanks


Top
   
 Post subject: Re: Capistrano
PostPosted: Tue Oct 05, 2010 10:48 am 
Offline
Newbie

Joined: Sat Nov 29, 2008 12:59 pm
Posts: 4
Website: http://seanwalberg.com
badnaam wrote:
Is there a good capistrano deployment documentation for rails apps on linode?

I am struggling with figuring out the deployment user, ssh authentication, git and permissions.

Thanks


If you post some errors, I might be able to help.

3 steps to capistrano
- being able to log in without a password without using cap
- being able to have capistrano log in itself to do basic filesystem functions
- being able to have capistrano log in and deploy an app from your source tree.

In a nutshell, your application is going to run as a user, say "appuser", on your linode host called "linode". That's your deployment user.

From another system you'll be deploying the app, say as user "thisisme" from a box called "devbox". So, logged in as thisisme from devbox, you should be able to run "ssh appuser@linode" without getting a password prompt.

If not, make sure that thisisme@devbox's ~/.ssh/id_dsa.pub is in appuser@linode:~/.ssh/authorized_keys and that appuser@linode:~/.ssh is mode 700, owned by appuser, and that ~/.ssh/authorized_keys is mode 600 and owned by appuser. If you still can't ssh in without a password, look at /var/log/secure and /var/log/messages (or whatever else your system uses) to see if there are any clues.

Then run "cap deploy:cold", and capistrano should be able to connect in and set up the directory structure.

If you get that far, step 3 becomes pretty easy, you're just telling cap to pull your application from SCM. If it can log in to your server and run git/svn, the errors at this point usually tell you exactly what's wrong.

Post some output, I can help more.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group