Created
September 26, 2016 14:04
-
-
Save dsilfen-handy/bc0558bd4cb1ad6b263024a6e708a7b2 to your computer and use it in GitHub Desktop.
Quick script to switch web server in docker-compose.
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
grep shotgun docker-compose.development.yml | |
if [ $? -eq 0 ] ; then | |
perl -p -i -e "s/shotgun/unicorn/g" docker-compose.development.yml | |
else | |
perl -p -i -e "s/unicorn/shotgun/g" docker-compose.development.yml | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment