Created
July 23, 2019 04:27
-
-
Save caseyfw/6559ab9df85191ea5b793ad395cf4f28 to your computer and use it in GitHub Desktop.
Prodigy config dump shenans
This file contains hidden or 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/bash | |
| branch=$(git branch | grep \* | cut -d ' ' -f2) | |
| [[ "roar" == "$branch" ]] || branch=fixed | |
| # Delete output files. | |
| rm build/config/${branch}/* | |
| robo parameters:copy-from-dist-all | |
| for env in dev int prd stg; do | |
| for brand in fcau fcca fcnz sfau; do | |
| rm -rf app/${brand}/cache/${env}/* | |
| app/${brand}/console debug:container --parameters -e ${env} --format json >> "build/config/$branch/$env-params.json" | |
| for config in framework guzzle monolog security twig web_profiler; do | |
| app/${brand}/console debug:config ${config} -e ${env} >> "build/config/$branch/$env-$config.twig" | |
| done | |
| done | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment