Deploy an Express.js Application on Clouddley Triggr
Learn how to deploy an Express.js App on Triggr.
Last updated
Was this helpful?
Learn how to deploy an Express.js App on Triggr.
Last updated
Was this helpful?
Clouddley Triggr makes it easy to deploy your Express.js application easily, ensuring zero downtime on your server. Express.js is a lightweight and flexible Node.js framework designed for building fast and scalable web applications. In this guide, we will walk you through the deployment process, showing you why Clouddley Triggr is the perfect choice for your deployments. So, let's begin!
A Clouddley account.
An Express.js application.
A virtual machine on a Cloud platform or bare metal server.
Open your web browser, log in to your Clouddley account
Navigate to Triggr Apps and click on Deploy App
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, insert 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.
The Express.js application has been successfully deployed on Triggr. You can manage it from the application dashboard by selecting the three-dot menu (…) in the top-right corner, where you will find options to Edit, Instant Rollback, Scale, Pause, or Delete the deployment.
Additionally, you can navigate through the dashboard tabs to:
View deployment history
Access and download logs
Add a custom domain
View and manage environment variables
You've successfully deployed an Express.js application on Clouddley Triggr! Feel free to explore the source code for this application here. Additionally, check out our how-to guides to learn more about deploying different frameworks on Clouddley Triggr.
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.