Hello.
ValueHost continues to upgrade the new VH3 server line, and now our users have the opportunity to install
Ruby on Rails applications on their virtual servers.
Today we will explain how to install the RoR application using the example of the
Radiant CMS .
')

The first thing we need to do is access SSH:
Control Panel -> SSH -> Set the password and the On flag. (Either we limit by IP)Next, create a base for our application:
Control Panel -> Databases -> MySQL or PgSQL to choose fromWe remember the name of the database, password, type, and address of the database server.
Create a virtual server:
Control Panel -> Web Servers -> Create New:Server Applications -> Ruby On Rails
Root folder -> cms
Server name -> mydomain.ru
Enable accelerator return static content -> On.
Save
While the settings for the new server are being applied (it takes no more than half an hour, you can view the status in the
Control Panel -> Home ), create an application on the server.
Using any SSH client, we go to the server:
ssh my_admin_login@mydomain.ruWhere,
my_admin_login - your admin login
mydomain.ru - your domain or technical server address
After entering the password (we set it at the very beginning), execute the following command:
For MySQL:
radiant -d mysql cmsFor PostgreSQL:
radiant -d postgresql cmsWhere,
mysql / postgresql is a database type
cms - root folder specified in server settings
Configure the database configuration by editing the
cms / config / database.yml file
:After the line
"production" fill in change:
database: Base name
username: base name
password: Password specified during database creation
host: Database server address
Edit another
cms / config / environment.rb file, add the line to it:
ENV ['RAILS_ENV'] = 'production'And finally, on the command line, execute the command:
rake production db: bootstrapWe answer simple questions:
Name (Administrator) : Administrator Name
Username (admin) : Admin Login
Password (radiant) : Admin Password
Select a database template : Demo content your site
That's it, open the site
mydomain.ru and edit the content in the admin panel
mydomain.ru/adminTo install clean Ruby on Rails, simply replace the
radiant command with the
rails command.
If you need to install additional “gems” - contact “Online Support” from your Control Panel, and we will be happy to do that.
That's all. Next time we will tell you how to run Python scripts using Django as an example.
Always with you, ValueHost Team.