Skip to main content
Hosting How-To

How to set up an environment for the Ruby on Rails application – Hosting

By May 22, 2021No Comments

&#13
Ruby on Rails is a no cost web software framework for the Ruby programming language. It is usually referred to as ‘Rails’ or ‘RoR’. It is supposed to be utilized with the Agile enhancement methodology, which is normally employed by world wide web developers for its suitability for shorter, shopper-pushed projects.

Ruby on Rails characteristics several equipment intended to make commonplace enhancement responsibilities easier and ‘out of the box’. Rails offers scaffolding which can automatically build some of the products and sights wanted for a primary site. A easy Ruby web server and Rake establish procedure are also incorporated. By including these prevalent tools with the Rails procedure, a simple progress environment is in result delivered with all variations of the software package. Rails is also noteworthy for its considerable use of the JavaScript libraries Prototype and Script.aculo.us for Ajax.

We help RoR with our Stellar In addition, Stellar Organization and Reseller offers (and previous Qualified, Best, Company and Reseller offers). The adhering to versions are doing the job on our servers: Ruby – 1.8.7, Rails – 2.3.18. You can set up your environment for your Ruby on Rails software in cPanel in the subsequent way:&#13

2. Fill in the corresponding fields:&#13

  • Application Title – enter your application’s name.
  • Application Path – enter the application route for the app.
  • Atmosphere – listed here you may well pick out the style of RoR atmosphere that you desire.
  • Be aware: If you established an application path in your general public_html/ directory, anybody on the web can perspective your source code and configuration files.&#13

  • Load on Boot? – is helpful if you desire to load the application when the server boots.

&#13
&#13
Then, click on on Build: &#13
&#13

Now you can execute the next steps on programs:

  • To redirect to an application’s RoR server, simply click URL.
  • To run an application, simply click Run.
  • To cease an application, click Stop.
  • To load an application when the server boots, pick out the Load on Boot? checkbox.
  • To toggle an software between a generation and development environment, choose or crystal clear the Production checkbox.
  • To delete an application, simply click Delete.&#13

How to build a Rewrite

&#13
&#13
The RoR application makes use of its own server and does not answer to the common HTTP port 80. Hence, you will will need to specify the port wherever web site guests can entry your RoR application or configure it to reply without the need to have for your readers to specify a port number.

&#13
To configure a rewrite, conduct the adhering to ways:

1. In the Ruby on Rails menu >> the Generate A Rewrite part, simply click +Develop Rewrite for the recently-designed software:

2. On the future web site, decide on the area identify, subdomain, or addon domain name on which you wish to operate your Ruby software.

To operate the application from a new site inside your area name, enter the page identify that you wish to use in the URL area.

Simply click Preserve:

3. Now you might see the genuine application URL in the Latest Rewrites portion:&#13
&#13

If you desire to alter the software route, enter a new one particular in the corresponding discipline and click Save.

To delete the rewrite, opt for Delete.

&#13
&#13
After the App Position is changed to Working, open up the application URL in your browser. You will see the RoR welcome information:

The atmosphere for your Ruby on Rails software is set up. Feel cost-free to deploy your software now. &#13
&#13

That’s it!

              
                      Have to have any assistance? Get in touch with our HelpDesk

Leave a Reply