Skip to content

Instantly share code, notes, and snippets.

View coreysyms's full-sized avatar

Corey Snyder coreysyms

View GitHub Profile
@coreysyms
coreysyms / deploy.sh
Created October 16, 2019 03:06 — forked from leesmith/deploy.sh
Sync Nuxtjs dist folder to S3 and invalidate Cloudfront distribution
#!/usr/bin/env bash
#
# Sync generated site to S3 and invalidate Cloudfront distribution
if [ ! -f .env ]; then
echo "# Project environment variables...do not commit this file." >> .env
echo "AWS_CF_DIST_ID=" >> .env
echo "AWS_S3_URI=" >> .env
echo "Please add the necessary values to the .env file."
else