Skip to content

Instantly share code, notes, and snippets.

@dsilfen-handy
Created September 26, 2016 14:04
Show Gist options
  • Save dsilfen-handy/bc0558bd4cb1ad6b263024a6e708a7b2 to your computer and use it in GitHub Desktop.
Save dsilfen-handy/bc0558bd4cb1ad6b263024a6e708a7b2 to your computer and use it in GitHub Desktop.
Quick script to switch web server in docker-compose.
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