Skip to content

Instantly share code, notes, and snippets.

@caseyfw
Created July 23, 2019 04:27
Show Gist options
  • Save caseyfw/6559ab9df85191ea5b793ad395cf4f28 to your computer and use it in GitHub Desktop.
Save caseyfw/6559ab9df85191ea5b793ad395cf4f28 to your computer and use it in GitHub Desktop.
Prodigy config dump shenans
#!/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