Skip to content

Instantly share code, notes, and snippets.

@rcadecaro
Forked from AlexzanderFlores/Scripts.txt
Created September 19, 2020 00:45
Show Gist options
  • Select an option

  • Save rcadecaro/10707b3e4432d74d5921a5d2ade5d63f to your computer and use it in GitHub Desktop.

Select an option

Save rcadecaro/10707b3e4432d74d5921a5d2ade5d63f to your computer and use it in GitHub Desktop.

Revisions

  1. @AlexzanderFlores AlexzanderFlores created this gist Jun 19, 2020.
    24 changes: 24 additions & 0 deletions Scripts.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    // Scripts for https://youtu.be/FEI-uEdb2y8

    "deploy": "react-scripts build && aws s3 rm s3://wornoffkeys.com/ --recursive && aws s3 cp ./build s3://wornoffkeys.com/ --recursive --acl public-read"

    {
    "Version": "2012-10-17",
    "Statement": [
    {
    "Sid": "PublicReadGetObject",
    "Effect": "Allow",
    "Principal": "*",
    "Action": "s3:GetObject",
    "Resource": "arn:aws:s3:::wornoffkeys.com/*"
    }
    ]
    }

    <?xml version="1.0" encoding="UTF-8"?>
    <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
    <CORSRule>
    <AllowedOrigin>*</AllowedOrigin>
    <AllowedMethod>GET</AllowedMethod>
    </CORSRule>
    </CORSConfiguration>