Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mattbloomfield
Created April 2, 2021 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattbloomfield/5ad494843f647b3dfa6582a222db8dda to your computer and use it in GitHub Desktop.
Save mattbloomfield/5ad494843f647b3dfa6582a222db8dda to your computer and use it in GitHub Desktop.
Replicates a deploy in a platform.sh environment
#!/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