Deploying an ASP.NET Core Web Application to Heroku

Heroku is a cloud platform that supports a number of languages. .NET Core has yet to be officially supported. The options for deploying .NET Core applications to Heroku are using Third Party buildpacks or container support. It can take some digging to find a buildpack that is well maintained and working properly for the version of .NET Core you are using.

For my purposes, I am deploying a brand new ASP.NET Core Web Application using Version 1.1. In order to get this deploying successfully to Heroku, first download the Heroku CLI.

From the command prompt, login to your Heroku account to get started.

heroku login

Navigate to the project’s root directory and create the app you will be deploying to.

heroku create

Use the set:buildpacks command to point the app to the desired buildpack:

heroku buildpacks:set

From here all that is left is to deploy the application to Heroku.

git push heroku master

See a demo application here.





Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s