aspnetcore-angular-universal icon indicating copy to clipboard operation
aspnetcore-angular-universal copied to clipboard

Deploying to Heroku

Open Katori opened this issue 7 years ago • 3 comments

This app doesn't have (that I can see anyway) an "app.json" so the "Deploy to Heroku" button doesn't work. What buildpacks should be used to get this app running?

Thanks.

Katori avatar Jan 14 '18 18:01 Katori

@Katori I got it up and running on Heroku using heroku/nodejs https://github.com/jincod/dotnetcore-buildpack (2) buildpacks. But also i had to add package.json to the root folder with { ... "engines": { "node": "8.9.1" } ... } for the first buildpack. Second buildpack will not work without first due to it doesnt provide node and(or) npm... Not very clean solution, but i had no result with any other buildpacks... Used it for 5.0 (with ssr) branch without prod mode.

Sosunov93 avatar Jan 15 '18 06:01 Sosunov93

Got it to work using those two buildpacks (didn't have to add entry for node engine), but I'm using the master build. If I can figure out how to codify this into an app.json file then I'll submit a PR. Otherwise this info should be in README.md under Heroku.

Katori avatar Jan 15 '18 22:01 Katori

@Sosunov93 @Katori can either of you create a PR to update the README.md to update the Heroku section. I will review and approve.

isaacrlevin avatar Jan 19 '18 16:01 isaacrlevin