i have a production and a development machine, both running ubuntu 8.10 and both are running the latest phusion passenger. as i am using ruby 1.9.1 on my local development machine on osx, i wondered if people out there are already using phusion passenger with ruby 1.9.1 or even 1.9.2 already?
if so, please tell us your setup!
furthermore, is ther a way to run both ruby 1.8.7 (ree) and 1.9.1 with phusion passenger on apache?
thanks for any pointers, i could not find any hints on this anywhere...
Yes it's officially supported since some 2.2.x release for which I can't remember the exact number. It was written in the release notes. The past few 2.2 releases have only continued to add 1.9-related bug fixes. The upcoming 3.0 release will officially support 1.9.2 as well (though this doesn't imply that 1.9.2 doesn't already work).
You can't run two Ruby versions simultaneously yet but it's on the todo list.
Related
I have a ruby/rails app that is still stuck on ruby 2.3.7 and uses Passenger 5.3.3. I wanted to upgrade the Passenger version to the latest safe/stable version that still works with ruby 2.3.7
I went through the release notes of each 6.x release and noticed this in the 6.0.9 release notes:
https://github.com/phusion/passenger/releases/tag/release-6.0.9
ruby:
2.3.8 → removed
2.5.8 → 2.5.9
...
"However", even when i installed a more recent version of Passenger (6.0.14), it seemed to work with Ruby 2.3.7, so i'm quite confused about that those release changelogs are talking about when they mention dropping support for older versions of ruby.
NOTE: I did have to set PassengerDisableAnonymousTelemetry on in 6.0.14 to resolve a crashing issue.
Thought i'd post this here since i got confirmation directly from Phusion
that Passenger v6.0.14 is compatible with Ruby 2.3.7
Hi I am wanting to install my website on a site5.com website but I am having difficulty. The ruby version on the actual site is 1.8.7 but the ruby version I use on my local computer is 1.9.3. How do I upgrade to ruby 1.9.3 without the use of sudo, apt-get install, and apt-get update?
If anyone knows some ways to get in without having to use sudo or the above, I would be very greatful for an answer to this problem.
Basically, I don't think you can at the moment. But as of a few weeks ago, it looks like they're starting to convert to 1.9.3 (emphasis added):
We will begin the process of updating all servers to a newer version of Phusion Passenger (the 4.0 branch) in November. That deployment will allow you to use any version of Ruby — including 1.9 and 2.0 — inside your Rack-based applications (e.g. Rails).
We will then begin work on changing the default Ruby across our entire fleet from Ruby 1.8.7 to 1.9.3. You will receive ample notification for this change, but if your application only functions on Ruby 1.8.7, you will be able to change the Ruby version per-application and per-account (via .htaccess) using the PassengerRuby option available in Phusion Passenger 4. You can then compile your own version of Ruby 1.8 inside of your account for your legacy applications.
I m working on a project which was developed by another developer. Right now my job is to fix the bugs and all the necessary things. After all those things successfully done when i started to work for deployment on site5.com i got to know here that they ve not upgraded the ruby version. Still they are using ruby 1.8.7. There is a tutorial to upgrade the system to rails 3 but m not able to do that. The rails version installed on the server is 2.3.16.
When the code was given to me i bundle installed it with new version 1.9.3 and then i fixed few bugs which was a syntax error because of that syntax deprecation in 1.9.3. Now i ve asked to the client that there may be some compatibility issues if i go with the installation. Now what should i do? Should i go with the installation or suggest him some other hosting website.
since phusion 4 is stable now (allowing multiple rubies), and ruby 1.8 is considered 'legacy' by phusion developers (see their blog), doing any fixes for ruby 1.8.x seems to be a waste of time.
Changing ruby version requirements would break the application on site5, if they're really still on 1.8.x .
running two rails 2.3.8 apps on two virtual servers in ubuntu 8.04 with apache and passenger. the ruby version is 1.8.6
we are upgrading one of the apps to rails 3.0.4. my understanding is that we need ruby 1.8.7 to run the app. with this version of ubuntu we will need to compile ruby 1.8.7 manually.
never compiled manually before. if you know of any resources i should check out that would be great.
i have not been able to determine the version of passenger and am trying to make sure it will be compatible with rails 3.0.4. any suggestions?
the application we are leaving in 2.3.8 is our core business application and i need to make sure i don't mess it up.
Thanks!
Just use RVM. Almost everybody use it now.
Early Passenger versions for Apache had some bugs so my suggestion is to simply upgrade Passenger to the newest version.
Looking to build a Rails 3 stack and trying to sort out Ruby versions.
I'm very interested in the concept of JVM, but not 100% sure if it even relates to Rails 3; meaning why not just do a deploy just for JVM if needed.
Then there's heroku saying there's a bug in Ruby 1.9.1, but they don't say what the bug is, if it's addressed by Ruby 1.9.2 -- or what will happen as a result of running Rails 3 on Ruby 1.8.6.
UPDATE: Found the bug heroku is indirectly linking to: "Note that Ruby 1.8.7 p248 and p249 have marshaling bugs that crash Rails 3.0. Ruby Enterprise Edition have these fixed since release 1.8.7-2010.02 though. On the 1.9 front, Ruby 1.9.1 is not usable because it outright segfaults on Rails 3.0, so if you want to use Rails 3 with 1.9.x jump on 1.9.2 for smooth sailing."
Anyone have info/link on the subject?
Thanks!
If you're running on windows, my personal recommendation is go with JRuby. MRI (both 1.9.x and 1.8.x) has mountains of problems on windows, whether deploying to XP, Vista, or Windows 7. I don't develop on Windows often, but I do teach Rails classes, and that's my recommendation to Windows students now. Haven't had many issues with JRuby at all, aside from needing to use a different database driver (the jdbc gem versions). RVM doesn't work on windows, but you can use pik (https://github.com/vertiginous/pik) to achieve many of the same goals.
My advice is that if you're starting a new Rails 3 project you should definitely think about kicking it off using Ruby 1.9.2. Heroku supports multiple stacks with the default now being Bamboo (the one that supports 1.9.2 as well as REE). If you're worried about gem compatibility or something else then you can hedge your bets and use RVM and/or multiruby to run your test suite across multiple versions of ruby so you can deploy to either run time.
Personally I'm running a Rails 2 app on REE and a Rails 3 app on 1.9.2 and haven't had any problems.
If you're not deploying on Heroku and are setting up your own server then I would manage your Ruby versions using RVM on your production server so you can easily switch between versions if anything doesn't work.
In summary:
You can run Rails 2 and 3 apps on both REE and Ruby 1.9.2.