I've got server with Linux Red Hat, Ruby 2.2 и Git Lab. Nginx + Passenger is running Git Lab on Ruby 2.2. I need to run Redmine 2.5.2 on Ruby version not higher than 2.1. No RVM installed yet. Please advce, is it possible to install second Ruby 2.0 on same server and make Redmine 2.5.2 work with it? Git Lab must be working too. It's not possible to uninstall anything already installed... Please help me with ths problem.
Yes it is possible. Just set the passenger_ruby directive for Redmine to Ruby 2.0.
Related
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 just installed redmine via apt-get on Linux Mint 14. Before I added the repository from https://launchpad.net/~ondrej/+archive/redmine. Everything works fine.
Environment:
Redmine version 2.3.1.stable
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.13
Next step would be for me to install a few plugins. I followed the instructions on
http://www.redmine.org/projects/redmine/wiki/Plugins.
The plugin to install http://www.redmine.org/plugins/redmine-projects-accordion
I created a directory /plugins under /usr/share/redmine (this is
where also the app-folder is).
Next step to do a rake redmine:plugins:migrate RAILS_ENV=production.
Now im getting a little Warning: WARNING: 'require 'rake/rdoctask'' is deprecated.
Next step is to restart apache(using passenger-mod) to restart
redmine. But there is no plugin on my administration.
As Im not a ruby/rails dev I can only guess where to search. Any ideas where to look for further information etc? Would be thankful for any advice.
Thanks a lot in advance.
Redmine is a ticket system as well as it is a issue tracker. Some companies are recently using redmine and it is developed by rails frame work. Now Redmine is upgraded its version to 2.x (recently 2.3 is the stable version). So , How can we use plugins in redmine 2.3 versions which we already implemented in redmine 1.x version.
Generally we can easily search the plugins from redmine plugins directory and do install , migration and restart the server i am sure some of you may get some issue at configuration level of the plugin from admin panel. So it depends up on the plugin version too.
You can find the better approach to install the plugins in redmine 2.3 in step by step process is explained in detail from this blog
http://mywayonrails.wordpress.com/2013/07/08/plugins-for-redmine-2-3
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.
I used railstutorial.org to install the latest version of ruby and the latest version of rails on my machine.
at the end of the installation I checked
ruby -v ==> 1.9.2 (great)
rails -v ==> 3.0.1 (great)
this morning I opened up terminal
ruby -v
ruby 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0]
rails -v
Rails 1.2.6
what happened?
My advice for people who are installing ruby is to use RVM. It makes managing your ruby versions and gem versions really simple and you can install multiple ruby versions side by side.
You might want to read this post:
http://rubylearning.com/blog/2010/12/20/how-do-i-keep-multiple-ruby-projects-separate/
You can use Cinderalla to the whole ruby/rvm/mysql/redis/git/... stack set up properly. Cinderella installs everything in ~/Developer and fixes up your PATH as well. I had some issues with a corrupt git mirror last time I used Cinderalla though so YMMV.
With many unix variants, you are likely to have multiple versions of Ruby--particularly if you installed Ruby 1.9 and the system already had 1.8 installed. Essentially, the 1.8 version of Ruby has a higher precedence in your PATH than the 1.9 version. The Ruby Gems command keeps the libraries separate between 1.8 and 1.9 so that the platform will be reasonably stable.
To correct the problem, you have to find where ruby 1.9 is installed. Once you do that, you'll need to override your PATH variable. Assuming 1.9 is installed in the path: /opt/ruby-1.9.2, you will need to set your PATH like this:
PATH=/opt/ruby-1.9.2/bin:$PATH
export PATH
To make the path respect what you want every time, add that to your ~/.profile file (create it if necessary). Once the path has been set, it sould be able to find the correct version of Rails again.
I cannot say for certain because I cannot debug you OSX machine from here, however, I had a very similar occurrence. The problem was caused because I had installed ruby and then rails on my machine using sudo or from the root account. Then when I discovered rvm I installed everything in my user account. When I logged off and back in I appeared to lose everything. I was pulling out my hair. I was pissed that I was going to have to reinstall everything again... when I found the magic.
from the command line execute the command:
rvm list
you'll see that your new version of ruby is there. you'll also notice the tokens that indicate that it is just a normal version. It is not current or default. (see it yet)
Now if you run the command:
rvm use 1.9.2 --default
then every time you login/off and restart your machine your user account will default to that version of ruby and all of the gems that you installed against that version.
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.