Conversation
|
(Could not open an issue on your repo) Sure the Edit: The |
|
Interesting, it doesn't complain when I test in a I think you're right though, it doesn't make sense here, I'll remove it. |
|
btw, you can remove |
|
@tkrotoff done, thx |
|
I prefer to document the error I've encountered here. I had a hard time getting rid of the following error I use webpack for the client side and my project.json looks like this: "scripts": {
"prepublish": [ "npm install", "npm run clean", "npm run build:client:prod" ],
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
}package.json: "scripts": {
"clean": "npm-run-all --parallel clean:*",
"clean:server": "rimraf ./bin ./obj",
"clean:client": "rimraf ./wwwroot/*",
"build:client:prod": "cross-env NODE_ENV=production webpack -p --progress"
}The problem was the |
|
Your buildpack installs Grunt, Bower and Gulp globally. This is not a good practice. These dependencies should be installed locally using package.json and managed with Otherwise what about the buildpack installing globally Webpack, Browserify, Rollup, Compass, SASS, ..., the next cool new command line tool? A buildpack should be agnostic and heroku-buildpack-nodejs for example is. Btw Bower is kind of obsolete: 1, 2, 3. Anyway, your buildpack works wonderfully, better than the others, thanks a lot for your work. |
|
@tkrotoff I'm not particularly happy about adding the javascript stuff either, but the problem is that almost all of the default .NET samples assume that they exist on the dev/build system. My docker sample is a good example: I didn't build it, I just copied sample code from the EntityFramework docs and tweaked them a little: https://github.com/aspnet/EntityFramework.Docs/tree/master/samples/core/GetStarted/AspNetCore/AspNetCore.NewDb I could remove it from the buildpack, but then the buildpack would be able to build only a small subset of projects. Also note that Bower and Grunt are only available when the buildpack is building, they're not added to the runtime slug. If you do |
|
@friism It should be |
Beside ASPNETCORE_URLS use also —urls
|
@tkrotoff thanks, I've opened up for issues on the repo on my account. |
|
Tested this and it works fine. This should get merged! |
|
I can just second that. Works like a charm, I just had to specify a |
|
Any way we can get some movement on all of these changes? |
No description provided.