Guide: How to Deploy a Ruby on Rails App Print

  • 0

Guide: How to Deploy a Ruby on Rails App

Deploying Ruby on SVR4U is simple. We use the Phusion Passenger bridge to ensure your Rails apps are fast and secure.

1. Initialize the App

  1. Log in to cPanel and click Setup Ruby App.

  2. Click Create Application.

  3. Select your Ruby Version.

  4. App Directory: Enter your project folder (e.g., rails_app).

  5. App Domain/URI: Choose where the app will live.

  6. Click Setup.

2. Upload and Install Gems

  1. Use the File Manager to upload your project, including your Gemfile.

  2. Go back to the Setup Ruby App interface and click Show under the "Modules" section for your app.

  3. If you have a Gemfile uploaded, you can click the Install button to run bundle install automatically.

3. The config.ru Entry Point

Ensure you have a config.ru file in your app directory. This is the "map" that our server uses to start your Ruby application. If you are using Rails, this file is created for you automatically.


Was this answer helpful?

« Back