| 1 | version: 0.2 |
| 2 | |
| 3 | env: |
| 4 | variables: |
| 5 | REACT_APP_BASE_URL: "http://localhost:5001/" |
| 6 | CLOUDFRONT_ID: "E1VDTBR7TV8GO0" |
| 7 | |
| 8 | phases: |
| 9 | install: |
| 10 | commands: |
| 11 | - echo Installing dependencies... |
| 12 | - cd Client && npm i && cd .. |
| 13 | |
| 14 | build: |
| 15 | commands: |
| 16 | # - echo Running npm run build in the Client folder... |
| 17 | - cd Client && npm run build && cd .. |
| 18 | |
| 19 | post_build: |
| 20 | commands: |
| 21 | # Copy the build output to your S3 bucket |
| 22 | - echo Copying build files to S3 bucket... |
| 23 | - aws s3 sync ./Client/build/ "s3://hygo.real-e-state/" --delete |
| 24 | cache: |
| 25 | paths: |
| 26 | - Client/node_modules/**/* |
| 27 | - server/node_modules/**/* |