'moves back'
1 file changed, +3 -5
+3-5buildspec.yml
| @@ -9,20 +9,18 @@ phases: | ||
| 9 | 9 | install: |
| 10 | 10 | commands: |
| 11 | 11 | - echo Installing dependencies... |
| 12 | - - cd Client && npm i | |
| 12 | + - cd Client && npm i && cd .. | |
| 13 | 13 | |
| 14 | 14 | build: |
| 15 | 15 | commands: |
| 16 | - # - cd Client | |
| 17 | 16 | # - echo Running npm run build in the Client folder... |
| 18 | - # - npm run build | |
| 19 | - - ls | |
| 17 | + - cd Client && npm run build && cd .. | |
| 20 | 18 | |
| 21 | 19 | post_build: |
| 22 | 20 | commands: |
| 23 | 21 | # Copy the build output to your S3 bucket |
| 24 | 22 | - echo Copying build files to S3 bucket... |
| 25 | - # - aws s3 sync ./Client/build/ "s3://hygo.real-e-state/" --delete | |
| 23 | + - aws s3 sync ./Client/build/ "s3://hygo.real-e-state/" --delete | |
| 26 | 24 | cache: |
| 27 | 25 | paths: |
| 28 | 26 | - Client/node_modules |