AspNetCore.Docs/aspnetcore/host-and-deploy/blazor/server-side.md

38 lines
1.7 KiB
Markdown
Raw Normal View History

2019-04-07 06:14:28 +08:00
---
2019-04-16 04:39:32 +08:00
title: Host and deploy Blazor server-side
2019-04-07 06:14:28 +08:00
author: guardrex
2019-04-16 04:39:32 +08:00
description: Learn how to host and deploy a Blazor server-side app using ASP.NET Core.
2019-04-07 06:14:28 +08:00
monikerRange: '>= aspnetcore-3.0'
ms.author: riande
ms.custom: mvc
2019-04-16 04:39:32 +08:00
ms.date: 04/15/2019
uid: host-and-deploy/blazor/server-side
2019-04-07 06:14:28 +08:00
---
2019-04-16 04:39:32 +08:00
# Host and deploy Blazor server-side
2019-04-07 06:14:28 +08:00
By [Luke Latham](https://github.com/guardrex), [Rainer Stropek](https://www.timecockpit.com), and [Daniel Roth](https://github.com/danroth27)
## Host configuration values
2019-04-16 04:39:32 +08:00
Server-side apps that use the [server-side hosting model](xref:blazor/hosting-models#server-side-hosting-model) can accept [Generic Host configuration values](xref:fundamentals/host/generic-host#host-configuration).
2019-04-07 06:14:28 +08:00
## Deployment
2019-04-16 04:39:32 +08:00
With the [server-side hosting model](xref:blazor/hosting-models#server-side-hosting-model), Blazor is executed on the server from within an ASP.NET Core app. UI updates, event handling, and JavaScript calls are handled over a [SignalR](xref:signalr/introduction) connection.
2019-04-07 06:14:28 +08:00
The app is included with the ASP.NET Core app in the published output, and the two apps are deployed together. A web server that's capable of hosting an ASP.NET Core app is required. For a server-side deployment, Visual Studio includes the **Razor Components** project template (`razorcomponents` template when using the [dotnet new](/dotnet/core/tools/dotnet-new) command).
<!--
**INSERT: Concerns are the same as publishing an ASP.NET Core SignalR app**
**INSERT: Content on the Azure SignalR Service**
**INSERT: Manually turn on WebSockets support**
-->
For more information on ASP.NET Core app hosting and deployment, see <xref:host-and-deploy/index>.
For information on deploying to Azure App Service, see <xref:tutorials/publish-to-azure-webapp-using-vs>.