A simple project to deploy ASP.NET Core MVC
yarn install
yarn workspace core-mvc-app-service run build
yarn workspaces run build
yarn workspaces info
- CD to CoreMvcAppService
- `dot net restore
- `dot net run
- Change downloaded publish profile content from
waws-prod.publish.azurewebsites.windows.net
to[app-name].scm.azurewebsites.net
and leave rest as it is and update in GitHub secret. - Or add app setting in Azure portal key
WEBSITE_WEBDEPLOY_USE_SCM
valuetrue
, download a publish profile and update in GitHub secret.
https://azure.github.io/AppService/2020/06/09/App-Service-Continuous-Deployment-for-Windows-Containers-with-GitHub-Actions.html configure port number https://docs.microsoft.com/en-us/azure/app-service/configure-custom-container?pivots=container-linux#configure-port-number
- Disable Admin user account
docker build . --tag mvc docker run --publish 5000:5000 mvc