]>
Commit | Line | Data |
---|---|---|
29e93a81 RBR |
1 | #!/usr/bin/env sh |
2 | ||
3 | set -xe | |
4 | ||
4563dbd2 | 5 | cp ~/.env .env |
9a0c6654 | 6 | |
29e93a81 RBR |
7 | if [ "$(git rev-parse origin/main)" == "$(git rev-parse HEAD)" ]; then \ |
8 | echo "Deploying to Production" | |
8c4493a2 | 9 | echo "S3_BUCKET=unlimited.pizza" >> .env |
be0c7379 | 10 | sudo make environment=production upload |
29e93a81 RBR |
11 | exit 0; |
12 | fi | |
13 | ||
14 | echo "Deploying to Dev" | |
9a0c6654 | 15 | export S3_BUCKET=limited.pizza; |
be0c7379 | 16 | sudo make upload |