diff --git a/README.md b/README.md index 368d069..a94c89c 100644 --- a/README.md +++ b/README.md @@ -181,7 +181,7 @@ az role assignment create \ --scope /subscriptions//resourceGroups/ ``` -**6. Configure application settings** +**6. Configure production application settings** ```sh az functionapp config appsettings set \ @@ -191,19 +191,22 @@ az functionapp config appsettings set \ "ACME_KEYVAULT_URL=https://.vault.azure.net" \ "ACME_SUBSCRIPTION_ID=" \ "ACME_RESOURCE_GROUPS=" \ - "ACME_CONTACT_EMAIL=" + "ACME_CONTACT_EMAIL=" \ + "ACME_SCHEDULE=0 0 2 * * *" ``` **7. Build and deploy** ```sh npm run build -func azure functionapp publish +func azure functionapp publish --no-build ``` +`--no-build` tells `func` to skip its own build step since we already compiled the TypeScript output. To also push application settings from `local.settings.json` in the same step, append `--publish-local-settings --overwrite-settings`. This is useful for the initial deployment or when settings and code change together. + ### Local testing -Create a `local.settings.json` file at the project root (it is gitignored): +Create `local.settings.json` at the project root (gitignored) and fill in your values: ```json {