Skip to content

Commit 47109b9

Browse files
committed
Adding mkdir command
1 parent 8a6abeb commit 47109b9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,14 @@ npm install
3838

3939
#### Deploy tuning infrastructure
4040

41-
Create a directory called **website-output** in the **cdk** directory to be used for the website output. You can do this manually or use the following command:
42-
43-
```bash
44-
mkdir website-output
45-
```
4641
Run the following command in the **cdk** directory to deploy the infrastructure:
4742

4843
```bash
4944
npm run deploy-infra
5045
```
5146

47+
_Note: This will create a folder called **website-output** which is required for the website infrastructure and deploy the tuning infrastructure. This is needed._
48+
5249
Once the infrastructure is deployed, the Amazon API Gateway endpoint will be made available as a CDK stack output:
5350

5451
```bash

cdk/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"test": "jest",
3131
"cdk": "cdk",
3232
"synth": "cdk synth",
33-
"deploy-infra": "npm run build && cdk deploy PowerTunerInfraStack",
33+
"create-website-directory": "mkdir -p website-output",
34+
"deploy-infra": "npm run create-website-directory && npm run build && cdk deploy PowerTunerInfraStack",
3435
"deploy-website": "npm run build && cdk deploy PowerTunerWebsiteStack",
3536
"deploy-lambda": "npm run build && cdk deploy PowerTunerLambdaStack"
3637
},

0 commit comments

Comments
 (0)