Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
devops hell
Browse files Browse the repository at this point in the history
  • Loading branch information
sballesteros committed Nov 28, 2019
1 parent 9e9ceac commit 95c1d37
Show file tree
Hide file tree
Showing 5 changed files with 972 additions and 536 deletions.
7 changes: 5 additions & 2 deletions deploy-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@

## See https://docs.microsoft.com/en-us/azure/app-service/deploy-zip

zip -r app.zip *.json *.js dist/* src/* public/* views/* scripts/* test/*
zip -r app.zip *.json *.js dist/* src/* public/* views/* scripts/* test/* node_modules/*

## See https://docs.microsoft.com/en-us/azure/app-service/containers/configure-language-nodejs

az webapp config appsettings set --resource-group "rapid-prereview" --name "rapid-prereview" --settings SCM_DO_BUILD_DURING_DEPLOYMENT=true
## See https://github.com/projectkudu/kudu/wiki/Deploying-from-a-zip-file-or-url#issues-and-investigation
az webapp config appsettings set --resource-group "rapid-prereview" --name "rapid-prereview" --settings SCM_ZIPDEPLOY_DONOT_PRESERVE_FILETIME=1

## disabled as npm install fails sometimes see https://github.com/projectkudu/kudu/issues/2946
## az webapp config appsettings set --resource-group "rapid-prereview" --name "rapid-prereview" --settings SCM_DO_BUILD_DURING_DEPLOYMENT=true

## https://docs.microsoft.com/en-us/azure/app-service/containers/configure-language-nodejs#run-with-pm2

Expand Down
8 changes: 6 additions & 2 deletions deploy-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@

## See https://docs.microsoft.com/en-us/azure/app-service/deploy-zip

zip -r service.zip *.json *.js dist/* src/* public/* views/* scripts/* test/*
zip -r service.zip *.json *.js dist/* src/* public/* views/* scripts/* test/* node_modules/*

## See https://docs.microsoft.com/en-us/azure/app-service/containers/configure-language-nodejs

az webapp config appsettings set --resource-group "rapid-prereview" --name "rapid-prereview-service" --settings SCM_DO_BUILD_DURING_DEPLOYMENT=true
## See https://github.com/projectkudu/kudu/wiki/Deploying-from-a-zip-file-or-url#issues-and-investigation
az webapp config appsettings set --resource-group "rapid-prereview" --name "rapid-prereview-service" --settings SCM_ZIPDEPLOY_DONOT_PRESERVE_FILETIME=1

## disabled as npm install fails sometimes see https://github.com/projectkudu/kudu/issues/2946
## az webapp config appsettings set --resource-group "rapid-prereview" --name "rapid-prereview-service" --settings SCM_DO_BUILD_DURING_DEPLOYMENT=true

## https://docs.microsoft.com/en-us/azure/app-service/containers/configure-language-nodejs#run-with-pm2

Expand Down
Loading

0 comments on commit 95c1d37

Please sign in to comment.