Building project in production
rafal-grycuk opened this issue · 5 comments
Hello, i have a problem with building application into the production. As far as i know, the output build should contain bundled css, js and html, which should be placed in the server. Unfortunately i cannot run build. Only the js files are created.
When i run npm run build
i obtain error. I restored the packages but not it take no effect. The same problem is in "clean" project.
What seems to be the problem ?
Getting same error while building for production :( using node run build
Try replacing
const args = ['publish', 'server', '-o', 'build', '-c', config, '-r', 'coreclr'];
With
const args = ['publish', 'server', '-o', '../build', '-c', config];
In build task in run.js.
I got it working when replacing that, I am unsure however if you will still be using .net Core.
Yes, but when I did that I didn't get a server.dll file that can run. Try running dotnet server.dll
and see if you are able to run the dll without errors.
And you will still need to change the 'build'
argument to '../build'
since it will otherwise create a tree of build folders.
yes @FluffyBucket you are right. dotnet server.dll
is not running.