Skip to content

Production deployment

Asad Sahi edited this page May 18, 2017 · 1 revision

When this project is published using any of the following means, it automatically creates production version of client and server code.

  • Client code is optimised using npm run build:prod script defined in package.json
  • npm run build:prod is defined as a pre-publish command in AspNetCoreSpa.csproj file

In order to deploy application to production environment, here are few ways:

1. Using command line)

run dotnet publish -c release command from project root location. This will create production artifacts at this location:

AspNetCoreSpa\bin\Release\netcoreapp1.1\publish

Copy files from this location to destination of your choice e.g IIS website, Azure web app etc.

2. Using Visual Studio IDE

Right click the project and click publish command. Select the deployment destination.

Clone this wiki locally