> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.hodi.host/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How do I deploy a Ruby application manually?

||| 💡 Good to know: to deploy from a Git repository instead of by hand, see [How do I deploy a Ruby on Rails or Sinatra application?](https://help.hodi.host/en/article/how-do-i-deploy-a-ruby-on-rails-or-sinatra-application-12hbaw4/). Hodifly creates the Passenger application, installs the gems, precompiles the assets and runs the migrations on every `git push`. The manual method below is still valid if you prefer to drive everything from cPanel.

We let you deploy a Ruby application (also known as Ruby on Rails, or RoR for short) directly on your hosting, without having to worry about monitoring anything yourself. Technically, the deployment is based on [Phusion Passenger](https://www.phusionpassenger.com/docs/tutorials/what_is_passenger/).

* [Log in to your cPanel](https://help.hodi.host/en/article/how-do-i-access-cpanel-en4rsm/)
* In the "Software" section, choose "Setup Ruby App"
* Click "Create Application"
* Enter the details of your application:
  ![](https://hodi.host/images/kb/57_Screenshot-2023-04-11-at-15.06.02.png)
* `Ruby version`: choose the Ruby version to use (feel free to [contact our support team](https://hodi.host/submitticket.php?step=2&deptid=2) if the one you need is missing)

* `App Directory`: specify the folder where your application's code is located (preferably use a folder different from the domain's folder where you'll be deploying your application)
* `App Domain/URI`: specify the URL where you want to deploy your application, optionally with a subdirectory (cPanel will create an .htaccess file there)
* `Setup`: click here to create your application

### Show more errors
The error page displayed in the web browser is, by default, fairly basic. You can enable a more advanced debug mode in Phusion Passenger to display more errors by adding the following lines to the .htaccess file at the root of the domain (and the subdomain, if applicable):

PassengerAppEnv development
PassengerFriendlyErrorPages on