Passenger 5.0.24 + CentOS 6.7 + RVM + REE 1.8.7 + Rails 1.2.3

47 views
Skip to first unread message

jo...@hesonline.com

unread,
Sep 21, 2016, 9:57:14 AM9/21/16
to Phusion Passenger Discussions
I have a Rails 1.2.3 web app built in 2008 that survives to this day and is quite popular.  I am trying to migrate it to a new server, but am having trouble.

My approach for my Rails 2.3.5 apps is to add the config.ru file as described here, and that works great --- in Rails 2.3.5.

I do not know how to do that for a Rails 1.2.3 app.  I tried to make a config.ru file for a Rails 1.2.3 app and almost got there, but gave up.  My preference is to run the app on a modern OS with a recent release of Passenger.

Does anyone know how to run a Rails 1.2.3 app on Passenger 5?

These three things in the sample config.ru file are not compatible with Rails 1.2.3:
use Rails::Rack::LogTailer
use Rails::Rack::Static
run ActionController::Dispatcher.new


My only other option is to migrate to new hardware but run it on a 2008-era platform:  CentOS 5.x, REE 1.8.7 without RVM, Passenger 3.0.9

Thanks!

jo...@hesonline.com

unread,
Sep 29, 2016, 9:24:07 AM9/29/16
to Phusion Passenger Discussions
I ended up going with CentOS 6.7 + Ruby 1.8.7 without RVM + RubyGems 1.4.2 + Passenger 3.0.7

Started over
sudo yum remove ruby ruby-devel rubygems
 
sudo rvm implode
sudo rm -rf /usr/local/rvm
rm -rf ~/.gem


Did things in sequence to get the right dependencies installed.
sudo yum install ruby ruby-devel rubygems
 
# first update to the most recent version, then downgrade to the proper version
sudo gem update --system
sudo gem update --system 1.4.2
 
# these are for ruby on rails 1.2.3
sudo gem install -v=1.4.1  rack --no-rdoc --no-ri
sudo gem install -v=0.2.6  daemon_controller --no-rdoc --no-ri
sudo gem install -v=0.9.2  rake --no-rdoc --no-ri
sudo gem install -v=3.0.7  passenger --no-rdoc --no-ri
sudo gem install -v=1.2.3  rails --no-rdoc --no-ri
 
# these are for resque 1.25.2
sudo gem install -v=0.9.2  sinatra --no-rdoc --no-ri
sudo gem install -v=1.5.1  json --no-rdoc --no-ri
sudo gem install -v=1.3    redis-namespace --no-rdoc --no-ri
sudo gem install -v=1.25.2 resque --no-rdoc --no-ri
 
sudo passenger-install-apache2-module
Reply all
Reply to author
Forward
0 new messages