.NET developers now have access to the git push heroku main
. š¤Æ Gone are the days of searching for Dockerfiles or community buildpacks. With official support, .NET developers can now run any .NET application (version 8.0 and higher) on the Heroku platform.
Being on the platform means you also get:
Intrigued? Letās talk about what this means for .NET developers.
In my experience, running an app on Heroku is pretty easy. But deploying .NET apps was an exception. You could deploy on Heroku, but there wasnāt official support. One option was to wrap your app in a Docker container. This meant creating a Dockerfile and dealing with all the maintenance that comes along with that approach. Alternatively, you could find a third-party buildpack; but that introduced another dependency into your deployment process, and youād lose time trying to figure out which community buildpack was the right one for you.
Needing to use these workarounds was unfortunate, as Herokuās seamless deployment is supposed to make it easy to create and prototype new apps. Now, with official buildpack support, the deployment experience for .NET developers is smoother and more reliable.
The benefits of the new update center around simplicity and scalability. It all begins with simple deployment. Just one git
commandā¦ and your deployment begins. No need to start another workflow or log into another site every time; just push your code from the command line, and Heroku takes care of the rest.
Herokuās
Coming into the platform also means you can scale as your app grows. If you need to add another service using a different language, you can deploy that service just as easily as your original app. Or you can easily scale your dynos to match peak load requirements. This scaling extends to Herokuās ecosystem of add-ons, making it easy for you to add value to your application with supporting services while keeping you and your team focused on your core application logic.
In addition to simple application deployment, the platform also supports more advanced CI/CD and DevOps needs. With
Letās do a quick walk-through on how to get started. In addition to your application and Git, you will also need the heroku login
command. This will take you to a browser to log into your Heroku account:
Once youāre logged in, navigate to your .NET application folder. In that folder, run the following commands:
~/project$ heroku create |
---|
Now, youāre ready to push your app! You just need one command to go live:
~/project$ git push heroku main |
---|
Thatās it! For simpler .NET applications, this is all you need. Your application is now live at the app URL provided in the response to your heroku create
command. To see it again, you can always use heroku info
. Or, you can run heroku open
to launch your browser at your app URL.
If you canāt find the URL, log in to the
If you have a more complex application or one with multiple parts, you will need to define a
Now weāve got another question to tackleā¦
The arrival of .NET on Heroku is relevant to anyone who wants to deploy scalable .NET services and applications seamlessly.
For solo devs and startups, the platformās low friction and scaling takes away the burden of deployment and hosting. This allows small teams to focus on building out their core application logic. These teams are also not restricted by their appās architecture, as Heroku supports both large single-service applications as well as distributed microservice apps.
Enterprise teams are poised to benefit from this as well. .NET has historically found much of its adoption in the enterprise, and the addition of official support for .NET to Heroku means that these teams can now combine their .NET experience with the ease of deploying to the Heroku platform. Herokuās low friction enables rapid prototyping of new applications, and
Finally, .NET enthusiasts from all backgrounds and skill levels can now benefit from this new platform addition. By going with a modern PaaS, you can play around with apps and projects of all sizes, hassle-free.
Thatās a brief introduction to official .NET support on Heroku! Itās now easier than ever to deploy .NET applications of all sizes to Heroku. What are you going to build and deploy first? Let me know in the comments!