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
-
Log in to cPanel and click Setup Ruby App.
-
Click Create Application.
-
Select your Ruby Version.
-
App Directory: Enter your project folder (e.g.,
rails_app). -
App Domain/URI: Choose where the app will live.
-
Click Setup.
2. Upload and Install Gems
-
Use the File Manager to upload your project, including your
Gemfile. -
Go back to the Setup Ruby App interface and click Show under the "Modules" section for your app.
-
If you have a
Gemfileuploaded, you can click the Install button to runbundle installautomatically.
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.