Created
April 2, 2021 14:53
-
-
Save mattbloomfield/5ad494843f647b3dfa6582a222db8dda to your computer and use it in GitHub Desktop.
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