How do I install Ruby on Rails on a CentOS server?

40 views
Skip to first unread message

Alexander Joseph

unread,
Aug 12, 2014, 5:19:53 PM8/12/14
to rubyonra...@googlegroups.com
Hi, I'm new to Ruby and Ruby on Rails. I have a CentOS server which is
part of an offline/private network. I need to install Ruby on Rails,
MySQL, Apache, and PHPmyAdmin on the server and be able to take and keep
the server offline after the install. Does anyone have any resources on
how to go about all this? Thanks!

--
Posted via http://www.ruby-forum.com/.

Hassan Schroeder

unread,
Aug 12, 2014, 6:36:30 PM8/12/14
to rubyonrails-talk
On Tue, Aug 12, 2014 at 2:19 PM, Alexander Joseph <li...@ruby-forum.com> wrote:
> Hi, I'm new to Ruby and Ruby on Rails. I have a CentOS server which is
> part of an offline/private network. I need to install Ruby on Rails,
> MySQL, Apache, and PHPmyAdmin on the server and be able to take and keep
> the server offline after the install. Does anyone have any resources on
> how to go about all this? Thanks!

Can you connect temporarily to the Internet?

If so, do - install everything normally, and then disconnect.

The alternative isn't pretty :-)

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

Javix

unread,
Aug 13, 2014, 8:05:34 AM8/13/14
to rubyonra...@googlegroups.com
It will be really difficult to install all that stuff off-line. Once you install RVM, Ruby, you can init a simple Rails app by just packaging all the needed gems into vendor/cache directory of the Rails application to copy:
Just create a Rails app locally on your PC, then  run (from insde of your Rails app created somewhere on your PC):

bundle package

Then copy the locally created app to the server and run

bundle install

This use the gems in the cache in preference to the ones onrubygems.org.

But install Mysql, Apache & Co - dont think it to be possible offline.
Even when using tolls like Chief, Puppet.

May be the best solution will be to use Vagrant and then copy the VM to the server. 




Reply all
Reply to author
Forward
0 new messages