Red Hat provides their own paas with Rails3 rpms.
normaly Rails3 setups, using "gem install&gem update", community software is very fine,
If you want to use older-stabler software Rails3 stack like CentOS, you have to chose red-hat's rpms.
Rails3 configration(Redhat's openshift)
*p1*
ruby 1.8.7-352-7 (community 1.8.7-357 plus redhat's 7 patch)
Rails 3.0.13-1
*p2*
ruby 1.9.3-1-4
Rails 3.2.3-1
=======================================================
#!/bin/sh
#
# Installing Rails3 and ruby193 rpms from Red Hat(openshift) repository
# on CentOS6/RHEL6
# getting openshift repository
#
cat> /etc/yum.repos.d/openshift.repo 2>&1 <
baseurl=http://mirror.openshift.com/pub/crankcase/rhel-6/\$basearch
gpgcheck=0
EOF
yum -y install ruby193-rubygem-rails ruby193-rubygem-rack ruby193-rubygem-sqlite3
#
# switching to ruby193
#
. /opt/rh/ruby193/enable
#
# check ruby ver.
ruby -v
#
# check rails ver.
rails -v
========================================================
before you play with rails3.2, type enabling command.
$ . /opt/rh/ruby193/enable
$ rails -v
$ rails new test1
Have a fun!!
0 件のコメント:
コメントを投稿