dotnetcore-angular-ssr icon indicating copy to clipboard operation
dotnetcore-angular-ssr copied to clipboard

Is it possible to deploy this app?

Open hartov opened this issue 6 years ago • 4 comments

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?

hartov avatar Feb 09 '19 18:02 hartov

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.

joshberry avatar Feb 10 '19 15:02 joshberry

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?

hartov avatar Feb 10 '19 16:02 hartov

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

hartov avatar Feb 11 '19 04:02 hartov

so if we run csr everything is good. but not ssr (about smarterasp) they are using iisnode

hartov avatar Feb 11 '19 04:02 hartov