How to install Ruby and Rails on Centos 7 via RPM
The version of Ruby in CentOS 7 repository is 2.0 but Install 2.2 with RPM package.
The version of Ruby in CentOS 7 repository is 2.0 but Install 2.2 with RPM package.
Phusion Passenger (commonly shortened to Passenger or referred to as mod_passenger) is an application server and it is often used to power Ruby sites. Its code is distributed in form of a Ruby gem, which is then compiled on the target machine and installed into Apache as a module.
On this page you will learn how you can deploy your app to a server that is running Passenger. You can either follow these instructions with your own app.
For multiple database connection, you need to add the following codes to the database.yml file. Here, I am giving the example of connecting two databases from a rails application
There are many ways to install Ruby on Rails on Centos 6. Today, I will answer the question "How to install Rails 5 on Centos 6 via RPM"
Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).