6

I'm planning to host a Rails application on Linode, but I'm still unsure about the requirements and process of deploying. I'm only getting the 512 plan since I'm expecting relative small traffic for the site.

My question is, do I need to get a repository such as Github to store my code? I'm also a bit concerned about how long it takes to set the server up and the deployment process. I've browsed through the Linode library but I'm not entirely clear on how to deploy Rails apps. I'm planning to use nginx as my server and passenger for deploying. Does anyone know where I can learn to deploy Rails applications on a Linode machine? A step-by-step tutorial with detailed explanation would be great. Thanks!

4 Answers 4

6

I've deployed a couple of simple applications on Linode and found their documentation to be excellent. In particular they have step-by-step tutorials tailored to specific environments. For example, in my case (like you) I wanted to use nginx, and I was using Ubuntu 10.04, so I followed this guide:

http://library.linode.com/frameworks/ruby-on-rails-nginx/ubuntu-10.04-lucid

If it's your first time setting up on a VPS there will be some hurdles certainly, but I found the experience to be very rewarding.

Regarding hosting your code, you have a number of options, but keep in mind that this is really a separate issue from deploying your app. You deploy your app on linode, but you don't have to host your code there, although you certainly can.

In general terms, if you're okay with making your code open, then certainly github is a good choice. If you want to keep the code private but still have access online (rather than just on one computer), you can take advantage of your linode machine and host your code there.

If you will have a number of other people contributing to the codebase, you might consider setting up gitosis or gitolite, which make it easy to do this. Alternatively if you will be the main user contributing to the codebase, you can setup a simpler configuration through HTTP, explained here: http://dev.bazingaweb.fr/2011/02/23/how-to-set-up-git-over-http.html

Linode also has documentation on setting up a remote git repository: https://library.linode.com/linux-tools/version-control/git

If you're choosing between gitosis and gitolite, I'd go with gitolite since gitosis appears to have been abandoned and is no longer being actively maintained.

Other references on deploying on linode:

3
  • I've noticed that there's no documentation for Rails on Ubuntu 12.04 LTS. I'm not really sure which to choose, 10.04 or 12.04. Do you have any suggestions? thanks
    – gerky
    Aug 7, 2012 at 4:07
  • That's unfortunate... but I'd suggest anyway to go with 12.04 since it will be supported over a longer period of time. Maybe you could inquire with Linode and see when they will have documentation on it, I'm sure it must be in the works. Aug 7, 2012 at 4:10
  • Using 12.04 does seem like the better choice, I'll ask them about the documentation and hopefully it will be out soon. Thanks!
    – gerky
    Aug 7, 2012 at 4:13
5

Ryan Bates has a great videocast on deploying Rails apps to... Linode! Today's your lucky day :) Grab some popcorn and enjoy: http://railscasts.com/episodes/335-deploying-to-a-vps

3

You don't need a GitHub account to deploy on Linode. The deploy process happens between your local machine and the Linode servers, usually by means of the Capistrano gem.

This tutorial from Smashing Magazine is pretty good. http://coding.smashingmagazine.com/2011/06/28/setup-a-ubuntu-vps-for-hosting-ruby-on-rails-applications-2/

0

Perfect Script for installation of nginx/ PostgreSQL/ Postfix/ Node.js/ Add deployer user/ rbenv

enter image description here

also refere this link https://medrails.wordpress.com/?blogsub=confirming#subscribe-blog

Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.