Skip to content

Commit 333392d

Browse files
Merge pull request #614 from microsoft/ve-dev-exp
feat: Add support for developer experience
2 parents 3c7a606 + d2c5e4d commit 333392d

File tree

5 files changed

+1575
-0
lines changed

5 files changed

+1575
-0
lines changed

azure_custom.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
environment:
2+
name: document-generation
3+
location: eastus
4+
5+
name: document-generation
6+
metadata:
7+
template: document-generation@1.0
8+
9+
requiredVersions:
10+
azd: '>= 1.18.0'
11+
12+
parameters:
13+
solutionPrefix:
14+
type: string
15+
default: bs-azdtest
16+
otherLocation:
17+
type: string
18+
default: eastus2
19+
baseUrl:
20+
type: string
21+
default: 'https://github.com/microsoft/document-generation-solution-accelerator'
22+
23+
services:
24+
webapp:
25+
project: ./src
26+
language: py
27+
host: appservice
28+
dist: ./dist
29+
hooks:
30+
prepackage:
31+
windows:
32+
shell: pwsh
33+
run: ../infra/scripts/package_webapp.ps1
34+
interactive: true
35+
continueOnError: false
36+
posix:
37+
shell: sh
38+
run: bash ../infra/scripts/package_webapp.sh
39+
interactive: true
40+
continueOnError: false
41+
42+
deployment:
43+
mode: Incremental
44+
template: ./infra/main.bicep # Path to the main.bicep file inside the 'deployment' folder
45+
parameters:
46+
solutionPrefix: ${parameters.solutionPrefix}
47+
otherLocation: ${parameters.otherLocation}
48+
baseUrl: ${parameters.baseUrl}

docs/DeploymentGuide.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,17 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
226226

227227
- Follow steps in [Delete Resource Group](./DeleteResourceGroup.md) if your deployment fails and/or you need to clean up the resources.
228228

229+
## Deploy Your Local Changes
230+
231+
To deploy your local changes, rename the below files:
232+
233+
1. Rename `azure.yaml` to `azure_custom2.yaml` and `azure_custom.yaml` to `azure.yaml`.
234+
235+
2. **Go to `infra` directory:**
236+
- Rename `main.bicep` to `main_custom2.bicep` and `main_custom.bicep` to `main.bicep`.
237+
238+
3. Continue with the [deploying steps](#deploying-with-azd).
239+
229240
## Environment configuration for local development & debugging
230241
> Set APP_ENV in your .env file to control Azure authentication. Set the environment variable to dev to use Azure CLI credentials, or to prod to use Managed Identity for production. **Ensure you're logged in via az login when using dev in local**.
231242
To configure your environment, follow these steps:

0 commit comments

Comments
 (0)