Skip to content

Instantly share code, notes, and snippets.

Kevin Dice kevindice

Block or report user

Report or block kevindice

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kevindice
kevindice / react-app-s3-sync.sh
Created Jan 27, 2019
A shell script for uploading a React app build to S3 + CloudFront for deployment
View react-app-s3-sync.sh
#!/bin/bash
S3_BUCKET_NAME=$1
CF_ID=$2
# Sync all files except for service-worker and index
echo "Uploading files to $S3_BUCKET_NAME..."
aws s3 sync build s3://$S3_BUCKET_NAME/ \
--acl public-read \
--exclude service-worker.js \
You can’t perform that action at this time.