Created
April 2, 2021 14:53
Replicates a deploy in a platform.sh environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
BLUE=\\x1B[34m | |
YELLOW=\\x1B[33m | |
GREEN=\\x1B[32m | |
RED=\\x1B[31m | |
RESET=\\x1b[0m | |
## Replicates a deploy in a platform.sh environment | |
## Usage: fin replicate_deploy | |
# Forces whole job to error on failure | |
set -e | |
rm -rf vendor/ | |
fin exec composer install | |
fin exec npm install | |
fin exec npm run prod | |
fin exec php craft project-config/apply | |
fin exec php craft cache/flush-all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment