set -xe
+cp ~/.env .env
+
if [ "$(git rev-parse origin/main)" == "$(git rev-parse HEAD)" ]; then \
echo "Deploying to Production"
- export $S3_BUCKET=unlimited.pizza;
- make environment=production upload
+ export S3_BUCKET=unlimited.pizza;
+ sudo make environment=production upload
exit 0;
fi
echo "Deploying to Dev"
-export $S3_BUCKET=limited.pizza;
-make upload
+export S3_BUCKET=limited.pizza;
+sudo make upload