-
Notifications
You must be signed in to change notification settings - Fork 465
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 inpackage.json
-
npm run build:prod
is defined as a pre-publish command inAspNetCoreSpa.csproj
file
In order to deploy application to production environment, here are few ways:
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.
Right click the project and click publish command. Select the deployment destination.