Rails on shared hosting?

Is there a way so that I can host the local rails application on the shared host on which Ruby is installed?

+7
ruby ruby-on-rails shared-hosting shared
source share
7 answers

Personally, I would use Capistrano . There are many books and tutorials that will tell you how to use it to deploy Rails applications. Its very easy to set up.

+3
source share

Kapistrano for deployment and (Mongrel or Passenger ... preferably the latter ... or if you have, FastCGI, although FastCGI is rather slow with Rails) for maintenance.

If you have a shared host, you will have to sell the version of Rails and all your gems, since you probably will not have access to install gems. Even if you did, you won’t want Rails to collect old versions of things.

+3
source share

Dreamhost supports Rails, there may also be others.

Regarding the installation of your application: it depends a little on what is already available on your shared host and what you can do / install / configure there. For Dreamhost, here is their documentation . Other common hosting solutions may or may not be similar depending on their policies.

0
source share

The best way I've found is to install the passenger gem. After you have downloaded your application to your account, you need to add a few lines to your .htaccess file, and you should be turned off.

0
source share

Definitely capistrano + git (git if you have access to SSH, like fe in HostingRails hosting), nothing could be simpler.

Neat Capistrano guide: http://www.linuxjournal.com/article/10100

How to configure Capistrano + git: http://github.com/guides/deploying-with-capistrano

Some nice Capistrano recipes: http://github.com/josh/slicehost

0
source share
  • Assuming your nginx or apache http server install Phusion Passenger
  • Passenger website has very good docs for configuring Apache / nginx with Rails
  • As a first step, just copy the Rails application somewhere to the host and start working with the passenger.
  • Once you get started, you will need a better way to deploy / update the application; as others suggested, Capistrano is a popular way to do this, and you don't have to worry about finding some online tutorials to help you with this.

I did steps 1-3 and it is incredibly simple and works great (I was too lazy to do step 4).

0
source share

Found a good link: LINK LINKS this will help to deploy the ROR application on a shared host.

0
source share

All Articles