Deploy a Ruby on Rails App on Clouddley Triggr
Learn how to deploy a Ruby on Rails app on Triggr.
Last updated
Was this helpful?
Learn how to deploy a Ruby on Rails app on Triggr.
Last updated
Was this helpful?
In this guide, you'll learn how to deploy a Ruby on Rails Application on Clouddley Triggr, an advanced runtime auto-detection tool for zero-downtime deployments across different server types. Let's begin!
A Clouddley account.
A Ruby on Rails application.
A virtual machine on a Cloud platform or bare metal server.
Open your browser and log into your Clouddley account
Choose your Git hosting service; either GitHub or Bitbucket. For this tutorial, we will be using GitHub.
Click on Continue with GitHub
To connect your GitHub user or organization account, click the Select username/organization dropdown and Add GitHub account.
Select your repository and the branch from the dropdown list or quickly search.
Click on NEXT
To configure your VM, enter your VM hostname or IP address, VM user, and the VM port for SSH access.
Use the Clouddley CLI (recommended) or connect via SSH to verify.
The Clouddley CLI is a command-line tool that allows you to interact with the Clouddley Platform from your terminal.
Open the command line of the remote VM you want to configure to Clouddley and install Clouddley CLI by running the command:
To install Triggr, run the command:
Using the CLI, you can deploy resources, manage configurations, and automate tasks efficiently.
Click on Verify. This verifies the connection.
Click on NEXT
Insert the name of the application and its port.
Choose an ENV mode: either a single variable or import variables. Learn more here.
Add the key-value pairs and Click on Save
Click on NEXT
Select the Alert type. For this tutorial, we will set up Email alerts.
Toggle on the buttons of the deployment event (failed, timed out, or success) you want to be notified of.
Enter the Email address where you want to receive alerts. (You can add multiple email addresses)
Click on Save
Click on Deploy
Click on Go to Dashboard. Your app will be visible on the Triggr apps dashboard.
After the app deployment is complete, the app status changes from deploying
to running
You can test the application functionalities.
You have deployed a Ruby on Rails application successfully on Triggr. You can manage it directly from the app dashboard by clicking the three dots (...) at the top-right corner to access Edit, Instant Rollback, Scale, Pause, and Delete options.
Additionally, you can switch to different tabs on the application dashboard to perform the following actions; view your deployment history, view or download logs, add a custom domain, and view the environment variables.
You've successfully deployed a Ruby on Rails application on Clouddley Triggr! To access the source code of this application, check here. Furthermore, to explore how different frameworks can be deployed on Clouddley Triggr, check out our how-to guides.
To add environment variables, click on Add Variable
To configure the notification settings of the application, click on Add Alert
Click on Website at the top right corner of the page, this opens the URL of the deployed application in your browser.