How can i run a ruby on rails project on apache server? - ruby-on-rails

I have project, personal blog with ruby on rails 3.
I use linux.
I want to run this project on apache server, not in webbrick.
How can i do this?
It will be very helpful if someone can answer.
Thanks

You can take a look at Passenger*:
http://www.modrails.com/
This is a module for Apache that works like mod_php. It's very easy to setup and you can also use the Ruby Enterprise Edition to use "33% less memory on average":
http://www.rubyenterpriseedition.com/

Related

Chef cookbooks to set up a Rails production server (CentOS)

So, I got tired of seting up production servers for my Rails apps all the time and decided to learn to use a tool that can simplify that process for me. I choose Chef-solo.
I've read the documentation and watched some tutorials, but I'm not realy sure I understend the process well, so I decided to go right to practice and learn on the way.
Now the real question: can someone provide me with a set of correctly working cookbooks to set up the server so I wouldn't need to reinvent the wheel myself?
OS - CentOS v.6.0-6.3
Software:
Development Tools (groupinstall)
git
Node.js
ImageMagick
Nginx and Unicorn
MySQL and PosgreSQL
Mail Server POP/SMTP/IMAP
RVM + ruby
MemCache
Think that's it.
Ofcource I need not only to install the packages, but also to configure them properly.
Any suggestions or additional info needed?
You can try looking at my repo at https://github.com/dmytro/chef-solo
I am using it to bootstrap Rails environments for myself.
Additionally it can be combined with Capistrano deployment. I use this in my capistrano recipes https://github.com/dmytro/capistrano-recipes
I've put blog post on these. Please lake a look too: http://dmytro.github.io/2013/05/21/easy_spawn_new_hosts_with_capistrano.html

Deploying Rails app to 1&1 Virtual Server L Windows

Evening all,
I have a rails app that I need to deploy to a 1&1 Virtual Server L Windows.
My setup uses a MYSQL db, rails 3.2, ruby 1.9 and was built on a mac.
I have read numerous accounts of Linux style deployments, however do the same rules apply when using a windows server? Some articles reccomend ftp'ing your app and then installing 3 other dependencies. Is this too good to be true?
I realise this is a fairly open ended question, but does anyone know the first few steps to getting this thing up and running or any helpful documents?
Thanks in Advance
Andy
I haven't tested it, because I'm not using a windows server, but have you checked this?
https://github.com/SciMed/capistrano-windows-server

Ruby on Rails on Linux hosting

I am about learning to program with Ruby on Rails but I'd like to know if web applications built on ROR can be hosted on the regular Linux servers.
Absolutely. One of the great reference books on Rails, "Agile Web Development with Rails" (written by the guys that created Rails), takes you through a whole demo app that includes server setup, configuration, deployements, everything. They deploy on Linux.
I also ran a site for over a year that was a Rails app, on Linux, and it totally rocked.
I think you'll also find that the broader Rails community prefers Linux. That means when you need help with something, you're much more likely to find someone else who has had your specific problem and is able to help you fix it.
You may also find this question helpful in choosing - how to select a Rails host (if you don't host it yourself).
Yes they can be and its advised to use Linux Hosting. I hardly if anybody uses windows hosting for Ruby on Rails. As for servers, You can use
A server called Mongrel ( in a cluster ) Behind Apache or Nginx.
Unicorn
Apache with Mod_Rails ( Phusion Passenger )

Ruby on rails Best IDE for Windows

I am working over linux in our office for development over Ruby on Rails but in home i have Windows XP installed. It has different IDE installed for .NET and PHP development. So i don't want to get rid of those stuff also so kindly guide best IDE for Ruby on Rails Develpment over windows with MySQL as Database..
I suggest RubyMine. Good Rails 3 support and provides a nice integration with your project elements and Rails tools.
I'm also currently working on Linux and NetBeans. Netbeans also supports Windows and you can have PHP as well. But unfortunately NetBeans has discontinued their Rails support from version 7.0. So long term, it might be a problem.
Another one is RedCar (http://redcareditor.com/), this is also good.
Also Aptana RadRails (http://www.aptana.com/products/radrails) can also be used (they offer Eclipse plugin also).
And if you are looking for a paid one I would say go for Rubymine (http://www.jetbrains.com/ruby/).
But as the final note. I have setup dual boot in my home laptop and do all the development except (.net) in Linux because you know Linux rocks :D
Have you tried Aptana?
I would propose that you use NetBeans with Ruby support. It is great and easy to use. I am using it.
I tried using Aptana, I just couldn't get it working.
I am using netbeans for ubuntu as well as for windows. you can download it here.

Ruby On Rails on Windows with Mongrel

Where is the best tutorial for getting Ruby On Rails working on a windows box with Mongrel? I'm a complete novice at server management, so the more detailed the better!
You can follow this tutorial, it will get you setup you can actually manage your Mongrel server as a Windows service (start/stop/restart, start on boot, manage programatically etc etc):
How to setup mongrel as a native Windows service
I'm currently using this method to manage an instance of Redmine on a Windows box and it works wonderfully.
Good luck!
I have found the book "Deploying Rails Applications" very useful. Specially the chapter "Deploying on Windows". It gives you step by step instructions to deploy a Rails application using Apache and Mongrel
Rubystack is a free Windows Rails installer that we keep up to date and includes Mongrel support out of the box

Resources