Last post Nov 17, 2020 04:52 PM by SaeedP
Nov 11, 2020 10:54 PM|SaeedP|LINK
I'm trying to publish my project to and Linux-arm server. Here comes the publish setting:
publish method = file system
configuration = release
target framework mode= self-contained
target runtime= Linux-arm
But it sounds wrong. You can see the result in
Can you please inform me where is wrong?
Nov 11, 2020 11:25 PM|bruce (sqlwork.com)|LINK
you just published the files. you must configure the websever to support asp.net core. if your webserver supports node.js, then it should be similar configuration. that is a reverse proxy to the .net core application. either the webserver will start the
asp.net core app, or you run it as a daemon.
rsh to the server, cd to folder and try run the app. it should display the port it is listening on.
Nov 13, 2020 05:29 PM|SaeedP|LINK
Are my publish settings correct for a Linux server? Or also I should change them?
Nov 13, 2020 10:42 PM|bruce (sqlwork.com)|LINK
you are uploading an executable. this executable is a complete webserver. your webserver must start the application and reverse proxy to.
this is all webserver configuration, and depends on your webserver. the docs cover using either apache or Ngnix. as you are using a different webserver, see the documentation for your webserver. running core should be similar to running node, just the executable
and environment setting are different.
like I said, you can rsh and test the asp.net core executable works.
Nov 15, 2020 06:08 PM|SaeedP|LINK
After your answer, I asked my server company, they told your files should contain "HTML" or "PHP" format. Although I changed the publish setting still there isn't any HTML file! I have no experience with Linux host and you can see the files
Nov 16, 2020 05:09 PM|bruce (sqlwork.com)|LINK
it appears you built a server hosted blazer project. this is not supported by your hosting provider. you hosting provider can support a blazor WASM project. it just takes an additional step.
dotnet publish -c Release -r linux-x64
then find the dist folder in the published files it should have an index.html, css folder and some others. the contexts of this folder should be copied to your hosting root. index.html should already be the default, but you should be able to config if not.
Nov 17, 2020 04:52 PM|SaeedP|LINK
Thanks for your answer. At last, I'm going to use a windows server!!