TKL Ruby on Rails

The TKL Ruby on Rails image is particularly suitable for users, who deal with the production of websites and applications, using the Ruby programming language. It contains the core TKL version and on top of that Ruby on Rails, which is the web framework for the Ruby programming language, which supports the rapid development of high performance web applications.

The control panel at the IP address of the machine with TKL Ruby on Rails installed

Ruby on Rails is a framework for web application development, which provides an abstract layer for working with the database, an implementation of the MVC architecture, support for automated testing, console for interactive work with the application, and many other components and features which allows for maximum automation and shortening of the high performance web application development time.

If you enter the IP address of such machine into the address bar of the browser after the machine with the given image is started, the control panel will appear, which will guide you to the shellinabox and webmin administration tools. You can find further information regarding these tools in the description of the TKL core image or in the particular separate manuals. Although there is a MySQL database inside this image, the adminer tool for its administration is not available.

The deployment is carried out with the use of Phusion Passenger for Apache (mod_rails). There is example pre-configured Rails Application available, which is located in /var/www/railsapp. There are also the MySQL databases available for production, development and testing purposes. The programs created with the use of the Ruby language are, by default, distributed as packages (gems). In order to allow for easy management of such packages, there is a package manager for the Ruby programming language – RubyGems, which is available inside the given TKL image. As conflicts between the APT and RubyGems package managers may arise, it is recommended to use only RubyGems for the management of the Rails components and APT for any other purposes. An update of RubyGems is performed using the gem update –system command, while the update of Rails components is carried out using the gem update command.

The TurnKey Linux Ruby on Rails image contains all the components mentioned in the description of the TKL core version and on top of that:

  • Apache – web http server, currently the version 2.4.25
  • Python – programming and scripting language, currently the version 3.5.3
  • Ruby – programming and scripting language, currently the version 2.3.5
  • RubyGems – Ruby package manager, currently the version 2.7.8
  • Pre-configured example Ruby project located in /var/www/railsapp and integrated with Apache 2 (mod_rails), MySQL
  • Postfix – email server, bound to localhost
  • The Webmin modules for the configuration of Apache2, MySQL and Postfix
  • MySQL – relational database, currently the version 5.5
  • SSL support

The official documentation of the TKL Ruby on Rails image is available at: https://www.turnkeylinux.org/rails .