How to deploy a Ruby on Rails 2.3 application

1 de noviembre, 2015 @ 00:56 — 0 comentariosDownload PDF

In this guide we explain how to install or deploy a Ruby on Rails 2.3 application on your hosting account. Note that you require SSH access and access to compilers.

1 - Define the app from the Hosting Panel

1 - Access your Hosting Panel

Just follow instruccions of How to access your Hosting Panel.

2 - Click on Ruby Applications

Look for and click on Ruby Applications icon.


3 - Create the app

Fill in the form and make sure you choose Ruby Sua stack:


Once you submit the form you we'll see the app creation result. Remember the application directory as it's important in the next steps.


2 - Upload application files

You must upload application files and move them to the application directory. The application directory is the application's root folder, for example: if the app name is myapp, the application directory will be /home/username/ruby/myapp and the application's public folder will be /home/username/ruby/myapp/public

If you are developìng a new app you won't have anything to upload, so just run the following commands from the command line:

cd ruby
rm -fr myapp
rails myapp

Note: The above commands supposse that your application's name is myapp

3 - Install and define the Rails version

Now you have to install the required Ruby on Rails version. Suppose that you want to use version 2.3.15, to install Rails:

gem install rails -v 2.3.15

Once installed you must define the required Rails version on the config/environment.rb file of you application, just add the following file to the start of the file:

RAILS_GEM_VERSION = '2.3.15' unless defined? RAILS_GEM_VERSION

4 - Install additional dependencies

At this step you rapplication will probably have unment dependencies, you just install the required gems:

gem install [gem name] -v [gem version]