Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publishing #16564

Closed
1 of 3 tasks
danroth27 opened this issue Jan 25, 2018 · 8 comments
Closed
1 of 3 tasks

Publishing #16564

danroth27 opened this issue Jan 25, 2018 · 8 comments
Assignees
Labels
area-blazor Includes: Blazor, Razor Components

Comments

@danroth27
Copy link
Member

  • Support dotnet publish and produce a useful result for standalone apps
  • Support dotnet publish and produce a useful result when hosted in ASP.NET
  • Linking (combining and stripping assemblies, eliminating facades)
@SteveSandersonMS
Copy link
Member

Done

@iAmBipinPaul
Copy link

Few days before , I tried to publish it on GitHub page and it was not able to reference the files inside of _framework folder. how ever it worked on azure when I tried using Visual Studio publish tools to publish it on azure.

can we serve this from a static server like GitHub page or GitLab Page?

@danroth27
Copy link
Member Author

Yup, in fact https://blazor-demo.github.io is a Blazor app hosted on GitHub Pages as static files.

@iAmBipinPaul
Copy link

is there any extra tweak we have to do or simply hosting all content of dist folder which will be get after running dotnet publish is enough?

let me try it again.

@danroth27
Copy link
Member Author

When tried this out I had to make a couple of tweaks. For example, I think GitHub pages ignores files/folders that start with _ by default.

@danroth27
Copy link
Member Author

Also you need to enable support for SPA patterns on GitHub pages using something like https://github.com/rafrex/spa-github-pages. See https://github.com/blazor-demo/blazor-demo.github.io for an example deployment

@iAmBipinPaul
Copy link

Thanks it worked ! 👍

@rstropek
Copy link

@danroth27 Thank you for the tip regarding GitHub pages. I added it to https://learn-blazor.com/getting-started/static-hosting/. It now covers nginx/Docker, Webserver for Chrome, and GitHub Pages.

@mkArtakMSFT mkArtakMSFT transferred this issue from dotnet/blazor Oct 27, 2019
@mkArtakMSFT mkArtakMSFT added the area-blazor Includes: Blazor, Razor Components label Oct 27, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

No branches or pull requests

5 participants