Skip to content

Commit a64dcff

Browse files
remove local deployment changes
1 parent 8f48782 commit a64dcff

4 files changed

Lines changed: 1 addition & 1733 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ on:
1414
paths:
1515
- 'infra/**'
1616
- 'azure.yaml'
17-
- 'azure_custom.yaml'
1817
- 'scripts/**'
1918
- '.github/workflows/ci.yml'
2019
pull_request:
@@ -23,7 +22,6 @@ on:
2322
paths:
2423
- 'infra/**'
2524
- 'azure.yaml'
26-
- 'azure_custom.yaml'
2725
- 'scripts/**'
2826
- '.github/workflows/ci.yml'
2927
schedule:

azure_custom.yaml

Lines changed: 0 additions & 108 deletions
This file was deleted.

docs/DeploymentGuide.md

Lines changed: 1 addition & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -460,64 +460,4 @@ Now that your deployment is complete and tested, explore these resources to enha
460460
461461
- 🐛 **Issues:** Check [Troubleshooting Guide](./TroubleShootingSteps.md)
462462
- 💬 **Support:** Review [Support Guidelines](../SUPPORT.md)
463-
- 🔧 **Development:** See [Contributing Guide](../CONTRIBUTING.md)
464-
465-
---
466-
467-
## Advanced: Deploy Local Changes
468-
469-
If you've made local modifications to the code and want to deploy them to Azure, follow these steps to swap the configuration files so that `azd up` builds Docker images from your local source code instead of pulling pre-built images from the GitHub repository.
470-
471-
**How it works:**
472-
- The custom `azure.yaml` defines three services (backend, processor, frontend) with `remoteBuild: true`, which instructs `azd` to build Docker images from your local `src/` directories and push them to Azure Container Registry (ACR).
473-
- The custom `main.bicep` accepts image name parameters (`backendImageName`, `processorImageName`, `frontendImageName`) that `azd` passes automatically after building the images.
474-
475-
> **Note:** To set up and run the application locally for development, see the [Local Development Setup Guide](./LocalDevelopmentSetup.md).
476-
477-
### Step 1: Rename Azure Configuration Files
478-
479-
**In the root directory:**
480-
1. Rename `azure.yaml` to `azure_custom2.yaml`
481-
2. Rename `azure_custom.yaml` to `azure.yaml`
482-
483-
### Step 2: Rename Infrastructure Files
484-
485-
**In the `infra` directory:**
486-
1. Rename `main.bicep` to `main_custom2.bicep`
487-
2. Rename `main_custom.bicep` to `main.bicep`
488-
489-
### Step 3: Deploy Changes
490-
491-
> ⚠️ **Critical: Redeployment Warning**
492-
> If you have previously run `azd up` in this folder (i.e., a `.azure` folder exists), you must create a fresh environment before deploying to avoid conflicts and deployment failures.
493-
494-
**Create a fresh environment:**
495-
```shell
496-
# Create a new named environment (3-16 characters, alphanumeric only)
497-
azd env new <new-environment-name>
498-
```
499-
500-
> **Note:** When prompted "Set new environment as default environment?", select **Y**. This eliminates the need to run `azd env select` separately.
501-
502-
**Run the deployment:**
503-
```shell
504-
azd up
505-
```
506-
507-
> **Note:** During the packaging phase, you may see `"No artifacts were found"` for each service. This is expected — because `remoteBuild: true` is configured, Docker images are built remotely on Azure Container Registry, not on your local machine. Your local code is still being deployed.
508-
509-
**⚠️ Deployment Issues:** If `azd up` fails on the first attempt (e.g., with a `ResourceNotFound` error), try running `azd up` again. Transient errors can occur due to resource propagation delays, and a retry typically resolves them. For other errors, try a different region or see the [Troubleshooting Guide](./TroubleShootingSteps.md).
510-
511-
### Step 4: Revert Configuration Files
512-
513-
After your custom deployment is complete, revert the renames to restore the original configuration:
514-
515-
**In the root directory:**
516-
1. Rename `azure.yaml` to `azure_custom.yaml`
517-
2. Rename `azure_custom2.yaml` to `azure.yaml`
518-
519-
**In the `infra` directory:**
520-
1. Rename `main.bicep` to `main_custom.bicep`
521-
2. Rename `main_custom2.bicep` to `main.bicep`
522-
523-
> **Note:** This restores the original files so that standard deployments and git status remain clean.
463+
- 🔧 **Development:** See [Contributing Guide](../CONTRIBUTING.md)

0 commit comments

Comments
 (0)