-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Examples #5
Comments
Any suggestions on how to make this more slick? How can I depend on the drush script via composer and more importantly, move it into the right location? |
To be honest, I wrap it all in a build tool. In this case, Then its just Make is our personal preference having tried Robo and Phing. Snippet from our Makefile APP_ROOT=./app
CONFIG_DIR=$(CURDIR)/config-export
CONFIG_DELETE=$(CURDIR)/drush/config-delete.yml
CONFIG_IGNORE=$(CURDIR)/drush/config-ignore.yml
CONFIG_INSTALL=$(CURDIR)/config-install
CONFIG_SKIP_MODULES=devel
import:
drush -r $(APP_ROOT) cimy -y --skip-modules=$(CONFIG_SKIP_MODULES) --source=$(CONFIG_DIR) --install=$(CONFIG_INSTALL) --delete-list=$(CONFIG_DELETE)
export:
drush -r $(APP_ROOT) cexy -y --skip-modules=$(CONFIG_SKIP_MODULES) --destination=$(CONFIG_DIR) --ignore-list=$(CONFIG_IGNORE)
|
Interesting. Any chance on getting cimy/cexy into drush core? |
Yep, moshe had indicated he'd support those flags in drush core, just need someone to write a PR |
Another use case I just found for cimy/cexy is to ignore secured configuration i.e. the uid/pwd for my smtp server. This let's me put in an empty password string into the one time install folder, then I can manually configure/override it. No password in git!!! |
Here's my drushrc.php for a site. As a prerequisite, I've downloaded the drush script and put it in the same folder as the rc script.
Here's my example config-ignore.yml:
config-delete.ym (empty for now):
The text was updated successfully, but these errors were encountered: