@@ -508,34 +508,29 @@ Now that your deployment is complete and tested, explore these resources:
508508
509509---
510510
511- # # Advanced: Deploy Local Code Changes
511+ # # Advanced: Deploy Local Changes
512512
513- Use this method to quickly deploy code changes from your local machine to your existing Azure deployment without re-provisioning infrastructure.
513+ If you ' ve made local modifications to the code and want to deploy them to Azure, follow these steps to swap the configuration files:
514514
515515> **Note:** To set up and run the application locally for development, see the [Local Development Setup Guide](./LocalDevelopmentSetup.md).
516516
517- # ## How it Works
518- This process will:
519- 1. Rebuild the Docker containers locally using your modified source code.
520- 2. Push the new images to your Azure Container Registry (ACR).
521- 3. Restart the Azure Container Apps to pick up the new images.
517+ ### Step 1: Rename Azure Configuration Files
522518
523- # ## Prerequisites
524- - ** Docker Desktop ** must be installed and running.
525- - You must have an active deployment environment selected ( ` azd env select <env-name>`).
519+ **In the root directory:**
520+ 1. Rename `azure.yaml` to `azure_custom2.yaml`
521+ 2. Rename `azure_custom.yaml` to `azure.yaml`
526522
527- # ## Deployment Steps
523+ ### Step 2: Rename Infrastructure Files
528524
529- Run the build and push script for your operating system:
525+ **In the `infra` directory:**
526+ 1. Rename `main.bicep` to `main_custom2.bicep`
527+ 2. Rename `main_custom.bicep` to `main.bicep`
530528
531- ** Linux/macOS:**
532- ` ` ` bash
533- ./infra/scripts/docker-build.sh
534- ` ` `
529+ ### Step 3: Deploy Changes
535530
536- ** Windows (PowerShell): **
537- ` ` ` powershell
538- ./infra/scripts/docker-build.ps1
531+ Run the deployment command:
532+ ```shell
533+ azd up
539534```
540535
541- > ** Note:** These scripts will deploy your local code changes instead of pulling from the GitHub repository.
536+ > **Note:** These custom files are configured to deploy your local code changes instead of pulling from the GitHub repository.
0 commit comments