NETCORESAAS
Search…
Deploy to heroku

Install Heroku CLI

If you haven't already, install the CLI: https://devcenter.heroku.com/articles/heroku-cli

1. Connect a heroku app

New app

Create your app manually at dashboard.heroku.com or type:
1
heroku create your-app
Copied!

Existing app

If you've already created your app, connect it:
1
heroku git:remote -a your-app
Copied!

2. Adding Node.js and .NET Core buildbacks

.NET Core is not officially supported on Heroku at present. Third party buildpacks are one option for extending the platform, for this project we are using: https://elements.heroku.com/buildpacks/jincod/dotnetcore-buildpack
1
heroku buildpacks:add heroku/nodejs
2
heroku buildpacks:add jincod/dotnetcore
Copied!

Heroku environment variables

1
heroku config:set ASPNETCORE_ENVIRONMENT=Production
Copied!
You can change environment variables directly from the heroku app settings:

3. Deploy

You can directly push to the heroku repository:
1
git push heroku master
Copied!
Herokuapp deployed
Or better yet, go to https://dashboard.heroku.com/apps/YOUR-APP/deploy/github and enable Automatic deploys so you only deploy when you type:
1
git push origin master
Copied!

4. Open your app

Open your app yourappname.herokuapp.com and ensure everything is working.
If you set your LIVE Stripe API Keys and LIVE products, keep in mind that you will be charged.