irongit

'going to handle buckets manually'

huncholanehuncholaneauthored
parent b48e45dcommit f98bfa1151cd9a5b3149467546e9a32c47adca5cBrowse files

1 file changed, +1 -13

+1-13buildspec.yml
@@ -4,9 +4,6 @@ env:
44 variables:
55 REACT_APP_BASE_URL: "http://localhost:5001/"
66 CLOUDFRONT_ID: "E1VDTBR7TV8GO0"
7- FRONTEND_BUCKET: "hygo.real-e-state.frontend"
8- CACHE_BUCKET: "hygo.real-e-state.cache"
9- ARTIFACT_BUCKET: "hygo.real-e-state.artifacts"
107
118 phases:
129 install:
@@ -14,15 +11,6 @@ phases:
1411 - echo Installing dependencies...
1512 - cd Client && npm i
1613 - cd ../server && npm i
17- - echo Ensuring artifact bucket
18- - aws s3api create-bucket --bucket $ARTIFACT_BUCKET --create-bucket-configuration LocationConstraint=us-west-1
19- - echo Ensuring cache bucket
20- - aws s3api create-bucket --bucket $CACHE_BUCKET --create-bucket-configuration LocationConstraint=us-west-1
21- - echo Ensuring frontend bucket
22- - aws s3api create-bucket --bucket $FRONTEND_BUCKET --create-bucket-configuration LocationConstraint=us-west-1
23- - aws s3api delete-public-access-block --bucket $FRONTEND_BUCKET
24- - aws s3api put-bucket-policy --bucket $FRONTEND_BUCKET --policy file://Client/bucket-policy.json
25- - aws s3 website --bucket $FRONTEND_BUCKET --index index.html --error index.html
2614
2715 build:
2816 commands:
@@ -35,7 +23,7 @@ phases:
3523 # Copy the build output to your S3 bucket
3624 - echo Copying build files to S3 bucket...
3725 - aws s3 website
38- - aws s3 sync ./Client/build/ "s3://$FRONTEND_BUCKET/" --delete
26+ - aws s3 sync ./Client/build/ "s3://hygo.real.e-state/" --delete
3927 cache:
4028 paths:
4129 - Client/node_modules