dotnetcore-angular-ssr
dotnetcore-angular-ssr copied to clipboard
Is it possible to deploy this app?
So in this template was remove few lines:
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
else
{
app.UseExceptionHandler("/Error");
}
and we couldnt see error page if something goes wrong. So in local machine it works well, but on iis it wont.
Did you try to deploy this template?
Yes I've deployed it - https://dotnetcore-angular-universal.azurewebsites.net/.
Exception handling wasn't configured because it's not a goal of the repo. I left it at exactly what dotnet new web gives you. Implementing the error page would require assumptions about whether the developer is using razor pages or mvc.
Oh. i know what was a problem. for tests i`m trying smarterasp with it trial period. so i get log file from it
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'start',
1 verbose cli '--',
1 verbose cli '--port',
1 verbose cli '63063' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink C:\Program Files\nodejs\\node.exe
5 error Error: ENOENT, stat 'C:\Windows\system32\config\systemprofile\AppData\Roaming\npm'
6 error If you need help, you may report this *entire* log,
6 error including the npm and node versions, at:
6 error <http://github.com/npm/npm/issues>
7 error System Windows_NT 6.2.9200
8 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start" "--" "--port" "63063"
9 error cwd h:\root\home\workhartov-001\www\site1\ClientApp
10 error node -v v0.10.33
11 error npm -v 1.4.28
12 error path C:\Windows\system32\config\systemprofile\AppData\Roaming\npm
13 error code ENOENT
14 error errno 34
15 verbose exit [ 34, true ]
node -v v0.10.33 npm -v 1.4.28
i`m very sad) can you describe how did you deploy template to azure?
You do not have to run any command line with npm or node.exe to host nodejs with us.
Article ID: 1970, Created: апреля 6, 2018 at 2:04, Modified: апреля 6, 2018 at 2:06
so if we run csr everything is good. but not ssr (about smarterasp) they are using iisnode