Skip to content

Instantly share code, notes, and snippets.

View m-nathani's full-sized avatar
🆒
Work until you no longer have to represent yourself.!

Murtaza Nathani m-nathani

🆒
Work until you no longer have to represent yourself.!
View GitHub Profile
@m-nathani
m-nathani / s3-sync.sh
Created December 19, 2021 18:09
Deployment to AWS S3 of create-react-app builds
#!/bin/bash
if [[ "$1" != "" ]]; then
S3BUCKETNAME="$1"
else
echo ERROR: Failed to supply S3 bucket name
exit 1
fi
# Sync root folder with no-cache control, excluding the static while which will be cache busted with new hash names by CRA build