--- title: "Ruby on Linux" slug: "prefix-ruby-on-linux" description: "Learn how to install and configure Stackify Ruby Profiler with Prefix for your Ruby application. Verify requests in Prefix. Build and deploy with ease!" updated: 2021-09-13T21:08:01Z published: 2021-09-13T21:08:01Z canonical: "docs.stackify.com/prefix-ruby-on-linux" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.stackify.com/llms.txt > Use this file to discover all available pages before exploring further. # Ruby on Linux :::(Info) (Prerequisites:) * [Supported Ruby Technologies](https://docs.stackify.com/docs/supported) *Since Prefix and Retrace share the same modules/profiler, the supported frameworks between the two products will be the same in most cases.* ::: ### 1. Download and install the Prefix installation file: Check out the [Getting Started](https://docs.stackify.com/v1/docs/prefix-getting-started) Prefix page to download and install Prefix on your workstation. ### 2. Get the latest Stackify Ruby Profiler for Prefix: Modify the application `Gemfile`: ```ruby gem 'stackify-ruby-apm' ``` ### 3. Configure the Application to use the Profiler with Prefix Enabled: * Add `config/stackify_apm.yml` to your application, modify **application_name** and **environment_name**. * Add `prefix_enabled: true`to the **stackify_apm.yml** file. ```yaml application_name: 'Ruby Application' environment_name: 'Production' prefix_enabled: true ``` ### 4. Initialize the Profiler: #### Rails Profiler will startup automatically, no additional configuration. #### Non-Rails Include **StackifyRubyAPM::Middleware** when starting your application: ```ruby # config.ru require 'stackify-ruby-apm' use StackifyRubyAPM::Middleware StackifyRubyAPM.start # application startup at_exit { StackifyRubyAPM.stop } ``` #### Sinatra ```ruby # config.ru require 'stackify-ruby-apm' require 'sinatra/base' class MyApp < Sinatra::Base use StackifyRubyAPM::Middleware # get '/' do ... end StackifyRubyAPM.start run MyApp at_exit { StackifyRubyAPM.stop } ``` **Build and Deploy your application.** ### 5. Verify application requests show up in Prefix