Sinatra is an open-source web application library, written in Ruby and is a domain-specific language. It depends on the Rack webserver interface.
Certain EasyApache 4 RPM’S need to exist on the server-
The following command needs to be run to install these-
yum install ea-ruby24-mod_passenger ea-ruby24-ruby-devel ea-apache24-mod_env
Installation of the Sinatra Gem ( Steps )
After the installation, a directory path has to be created. Example-
Creation of the application’s Ruby files :
class Example < Sinatra::Base
get ‘/’ do
After the setting file permissions, register the application. The usage of CPANEL’S Application Manager is required.
(cPanel >> Home >> Software >> Application Manager)
The application is accessible after Apache restarts in Cpanel’s Application manager interface –
(cPanel >> Home >> Software >> Application Manager).
RVM is an unix-like software, used to manage more than one installations of Ruby on a single device.
gpg –keyserver hkp://keys.gnupg.net –recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3$ curl -sSL https://get.rvm.io | bash -s stable –ruby
There are a few choices of code writing tools :
Bundler is used to manage dependencies and pulling Sinatra into the development environment is done by bundle install..
Using builder 3.2.2
Using jwt 1.5.6
Using multi_json 1.12.1
Using rack 1.6.5
Using tilt 2.0.5
Using bundler 1.13.3
Using twilio-ruby 4.13.0
Using rack-protection 1.5.3
Using sinatra 1.4.7