đHow to Deploy a .NET Core Application to Clouddley Triggr
Learn how to deploy a .NET Core app to Triggr.
Last updated
Learn how to deploy a .NET Core app to Triggr.
Last updated
In this article, our focus will be on deploying a .NET core application on Clouddley Triggr. However, prior to delving into that, it's important to understand what Clouddley Triggr actually is. Clouddley Triggr is a zero downtime application deployment tool that auto-detects your runtime and deploys your application to your server (virtual machines and bare metal). So, let's get started!
A Clouddley account.
A .NET core application.
A virtual machine in a Cloud platform or bare metal server.
Accessing Clouddley Triggr
Launch your web browser and log into your Clouddley account.
Go to the Triggr section and select 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 Select username/organization dropdown and click on Add username/organization to establish a connection with your GitHub user or organization account.
Select your repository and the desired branch
Click on NEXT
Step 2: Configure VM
For VM configuration, input your VM username, along with its hostname or IP address, and the designated VM port for SSH access.
Download the public key to your local machine.
Run the provided command on your local machine, allowing Triggr to establish a connection with your virtual machine.
ssh-copy-id -f -i ~/path/to/downloaded/Publickey username@ipaddress
Click on Verify. This action confirms the connection.
Proceed by clicking on NEXT
Step 3: Configure app settings
Insert the application's name and its corresponding port.
Ensure the virtual machine's firewall permits access to the application port.
You can add environment variables by entering a key-value pair in the environment variable section. Save your changes by clicking the Save option or use the + button to add them. To deploy your .NET core application on Triggr, you need to set the URL for the application as an environment variable which can be DOTNET_URLS
or ASPNETCORE_URLS
. Since this is an ASP.NET Core application, we will set;
Configure the application's notification settings by toggling the disabled button in the notification section. From there, choose the specific event (failed, timeout, or success) for which you wish to receive notifications.
Input 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.
After the app deployment is complete, the app's status will change from deploying
to running
.
Click on the application's URL, this will open the deployed application in your browser.
You can test the various features of the application.
You have deployed your .NET core application successfully using Triggr. For further steps, 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.
Congratulations on successfully deploying your .NET Core application to Clouddley Triggr! Feel free to explore the source code for this application here. Additionally, you can delve into our how-to guides to discover how various frameworks can be deployed on Clouddley Triggr.