Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
What is the best linux distro for deploying ruby on rails web apps on a production server.
The web app will use advanced cache features, graph creations and lots of other cool features.
Please advise.
I like Ubuntu Server mostly cause it's well supported and readily available on almost all cloud services.
Fedora 14, No Doubt... Actually there's a tutorial on how to setup a Complete RoR Development Enviroment in the Blog where I write... The post is in Spanish but I believe you'll understand terminal commands quite good:
http://xenodesystems.blogspot.com/2011/01/instalar-ruby-on-rails-en-linux-con.html
Also there's a Gadget on the Blog to translate posts into different Languages...
Good Luck!
Taking account that Rails relies substantially in console commands, any Unix based distribution will be good. My advice: use whatever you feel comfortable with. If that's not the case and you want to learn a suitable distro for Rails, I would recommend Fedora as Jmlevick suggested.
For Rails,it usually offers latest Ruby version directly in the distribution. Also the whole Rails is packaged as RPMs, making it easier to instal. You just need to download the RPM version of the gem with pre-compiled extension and you're done.
If you want to see the docs about Ruby or Rails directly from Fedora check out the links.
Also to take into account, Fedora is a friendly user distro, easy to install and it has a huge community, so in case of a problem, just do some research. In case that you have Mac, that would be also fine.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm new to Nix and quite excited about it (I've been using it so far for Haskell).
I'm planning to use it to deploy Php applications. However, how Nix deals with
Php packages (installed normally or with pear).
Working with PHP webapps generally requires several running services (php-fpm, httpd, mysqld, redis, etc). The answer depends on how you manage the services -- which, in turn, depends on whether you use:
(a) The full NixOS: NixOS provides a service-management layer - you edit a config file, twiddle some flags, and turn on the services. I haven't done this myself, and I think it needs a more pointed tutorial for folks coming from a PHP webdev background, but the system does exist.
(b) The crossplatform nix/nixpkgs: There does not appear to be a canonical service-management option here. nix basically just gives some binaries (php-fpm, mysqld, etc) which you can launch yourself. It's somewhat daunting for typical PHP developer.
Full disclosure: To try to improve the situation for crossplatform nix+PHP, I've written an example project locolamp. It won't help much with learning NixOS, but it may help get your toes wet with nix+php in cross-platform usage. See:
https://github.com/totten/locolamp
After spending a week trying to configure a LAMP platform and giving up (mainly because I couldn't make PHP send emails), I concluded that Nix is not ready for developping easily PHP application in production.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
How do you go about setting up a Rails application on a standard web server? I want to just throw my application into cgi-bin and run it, but Rails clearly wants to control the file system and how file accesses are routed. So it's all very well working on my application in its little sandbox, but how do you actually close the gap and serve an application?
You need to Create Ruby on Rails app first then you can deploy it on Heroku. Here is very nice reference link from scratch..
https://devcenter.heroku.com/articles/getting-started-with-rails4
Hope this will help you..to create Rails Demo App and all steps of deploying on Heroku.
Deploy
There are a plethora of tutorials on how to deploy rails applications correctly.
Most notable (we've recently used) are:
DigitalOcean - Deploying to a VPS
GoRails - Deploying on Ubuntu with Nginx
Heroku - Deploying to Heroku with GIT
This will give you information on how to deploy to either the Heroku platform, or one of the many VPS type hosting providers out there. We use Rackspace, and the DigitalOcean & GoRails tutorials were invaluable when setting up our server again
Rails
Although I'm not totally in tune with how Rails runs on file-system level, you have to appreciate that Rails runs with a multitude of dependencies & can also be compiled at run time
Processing requests in this way has to be handled by more than just the standard hosting software, and indeed, the most recommended solution from the Rails core team is Phusion Passenger
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have developed a nifty web application using rails and would like to host it. Unfortunately I'm unsure how i can cheaply host my application. I'm aware of various deployment tools like capistrano and I've also herd of Heroku. I presume these tools help in hosting.
However can anyone provide me the steps to host a web app in details esp using rails and what all options i can have for doing it?
EDIT
It has been pointed out to me that a link in my answer does no longer work. Which is not that surprising, since this is a 3 year old answer.
Because It seems like people are still stumbling on this answer, I would like to redirect people to this page:
https://gorails.com/deploy/ubuntu/16.04
It should have all the information you need to deploy a rails application.
End EDIT
I recommend that you check out
http://rubyonrails.org/deploy
to start with.
And also
http://www.cloudfoundry.com/
and
https://www.engineyard.com/
are both great hosts for any rails application, and they also have some pretty easy to follow step-by-step tutorials on how to do so.
As Leito mentioned Heroku in his answer, I would like to point you to
http://www.codeschool.com/code_tv/heroku
If you choose Heroku as your host, you could check out that video as it shows you how to deploy a simple rails application.
Heroku is the easiest in my opinion, I recommend you start here https://devcenter.heroku.com/articles/rails3
Heroku is more an application hosting and uses git to deploy your app, so no need of capistrano or similar tools.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am starting a new web app project with the only real technology requirement being a host running Windows Server. I considered both ASP.NET MVC and Ruby On Rails. I would like to learn Ruby so I'm wondering of hosting it on a Windows platform is doable or if it will cause me more grief than it is worth. RailsInstaller made dev environment setup a snap, but I'm more worried about the production deployment.
The proposed setup is a Ruby on Rails application running on Windows Server 2003 (IIS) & driven by a SQL Server database. I know that will make many open source people cringe, but I am wondering how viable this is from a strictly practical standpoint. Or, if this is just a bad idea, what might be a better way to go? Also any other practical advice on technology choices for Ruby on Windows or deployment ideas would be helpful (best deployment package, should I be using JRuby, etc.).
Thanks!
Yes, it's viable. Check out some of these helpful resources and articles that offer a variety of ways to get started with Rails on Windows:
http://www.helicontech.com/zoo/
http://vagrantup.com/
http://www.engineyard.com/blog/2011/jruby-on-windows
http://www.engineyard.com/blog/2011/jruby-win32ole-and-vagrant-on-windows
http://railsinstaller.org/
http://chocolatey.org/packages?q=ruby
As discussed in the JRuby on Windows article linked above, it's important that Windows developers get involved, so don't give up! Give it a go and share your experiences via a blog, here on SoF or on GitHub. When Rails was first born, deployment was a bit of a nightmare on any platform, so much so that entire books were written about it. Given the state of play now, and the obstacles that have been overcome through the sheer tenacity and ingenuity of the community, there's no reason why Ruby and Rails can't live and thrive on Windows.
If you specifically want to seek out folks with lots of Ruby on Windows expertise, I'd highly recommend the RubyInstaller group. They're a really friendly, dedicated bunch.
You might also be in need of an editor for Windows. I personally use Sublime Text 2, but there are others that might take your fancy:
http://www.sublimetext.com/dev
http://www.sapphiresteel.com/Products/Ruby-In-Steel/Ruby-In-Steel-Developer-Overview
http://www.jetbrains.com/ruby/
If the marriage of Ruby/RoR and Windows is a must, I would recommend going with JRuby and an application server of preference (e.g. Tomcat). MRI based application on Windows might be a pain to maintain.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Hi I'm looking for the cheapest hosting that would allow me to deploy a number of rails and non-rails apps along with maybe a blog and other goodies. Traffic is likely to be rather low, but still important.
Like a portfolio site.
What are good hosting providers for that?
Go with Slicehost (or another VPS). Since you are a student you will be only doing yourself favours by learning how to setup and use the full stack yourself. Because it is a VPS you have to do most of it yourself and Slicehost provides nice tutorials on how to do most of it. It's been rock solid for me so far.
You can get a functional 256MB slice for $20usd a month.
Heroku is a managed solution (they do a lot of the work for you and I haven't worked out the price differences since they only just went commercial but they should be a bit more expensive than slicehost - but I am only guessing about this). Dreamhost doesn't give you as much control (but is far far cheaper).
So my vote is to skip a night of drinking a month and learn ubuntu servers setup (DNS, vhosts, apache etc, capistrano deployment, SVN and mongrel, nginx, passenger while you learn rails. Maybe also throw in SMTP, Starling & Workling and monit/god.
Heroku just came out of beta. Their cheapest plan with only one dyno is free. You have a very limited amount of storage, but deployment is as easy as pushing to a git repository.
Try DreamHost or Slicehost.
List of free ruby on rails hosting:
http://www.khimhoe.net/2006/07/22/free-ruby-on-rails-hosting/
So you probably need shared hosting account.
For cheap hosting you can try http://www.hostgator.com/shared.shtml , they very good, i been with them for a year and never had problem.
When i was canceling my account (and moving to the asp.net hosting), somebody called from their company to confirm cancellation.