Last active
January 7, 2020 11:53
-
-
Save mortenson/48d16568147a710bedf94506f837733a to your computer and use it in GitHub Desktop.
Quick way to proxy Drush commands to your Docker container
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 | |
# Save this to a file named "drush" (not "drush.sh") and put it in the same | |
# directory as your docker-compose file. Replace "SERVICE" with your docker | |
# container's name. | |
# Now every time you run "drush" from this directory, it runs drush inside | |
# your container instead. Cool! | |
docker-compose exec SERVICE drush $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are a goddamn genius! Thanks for sharing. 🙇♂️