📗Deploy a Ruby on Rails App to Clouddley Triggr

Learn how to deploy a Ruby on Rails app to Triggr.

In this guide, you'll learn how to deploy a Ruby on Rails Application using Clouddley Triggr, an advanced runtime auto-detection tool for zero-downtime deployments across different server types. Let's begin!

Prerequisites

Deploy your Ruby on Rails Application

Accessing Clouddley Triggr

  • Open your browser and log into your Clouddley account

  • Navigate to Triggr and click on Add app

Step 1: Configure git

  • Select the version control platform where your code is hosted, which can be either GitHub or Bitbucket. In this guide, we'll be using GitHub.

  • Click on the Select username/organization dropdown and click on Add username/organization to connect your GitHub user or organization account.

    • Select your repository and the branch.

  • Click on NEXT

Step 2: Configure VM

  • To configure your VM, insert your VM username, its hostname or IP address, and the VM port for SSH access.

  • Download the public key to your local machine.

  • Run the command provided in your local machine allowing Triggr to connect to your virtual machine.

ssh-copy-id -f -i ~/path/to/downloaded/Publickey username@ipaddress

  • Click on Verify. This verifies the connection

  • Click on NEXT

Step 3: Configure app settings

  • Insert the application's name and its port.

The firewall of the virtual machine should allow access to the application port.

  • You can add environment variables by entering a key-value pair within the environment variable section. Save your changes by clicking on save or use the + button to add them. For your Ruby on Rails application to deploy on Triggr, ensure you add the SECRET_KEY_BASE and PORT environment variables.

  • You can configure the notification settings of your application by toggling the disabled button in the notification section. From there, choose the specific event (failed, timeout, or success) you wish to receive notifications for.

    • Enter your Email address.

  • Click on Create App

Step 4: Test and Verify the app

  • Once the app is created, it will be visible on the dashboard.

  • When the app deployment is complete, the app's status will change from deploying to running

  • Click on the application's URL, to open your application in your browser.

  • You can test the various features of the application.

You have deployed your Ruby on Rails application successfully on Triggr.

Furthermore, you can proceed to the deployments section. There, you can click on the icon in the actions column to view logs, download them, and if necessary, initiate a build restart.

Conclusion

Last updated