I have a dev, staging, and live server workflow set up on Pantheon. My site has a lot of rules that cause members to be e-mailed for various reasons. I sometimes need to work on these on my dev/staging sites but I've realized that, since they have the live data, sometimes users will receive additional or duplicate e-mails when I'm working on something.
Is there any easy way to turn off all e-mailing capability (preferably automatically to prevent me from forgetting) on a dev/staging server? Ideally, I'd like to disable e-mail via a custom module, since I already have steps in place for making sure a custom module is enabled on dev/staging.
git update-index --assume-unchanged sites/default/settings.php
to keep settings.php from being pushed around different environments. Some people prefer some conditional logic which checked environment settings and includes different conf files based on environment (a la pretty much every other web framework in existence, in any language). The only limit here is one's imagination, it's basic PHP/git stuff, doesn't need to be added to the answerssites/default/settings.php
, instead dogit update-index --skip-worktree sites/default/settings.php
. With--assume-unchanged
, you lose the changes you made to settings.php if you do agit reset --hard
. See stackoverflow.com/questions/13630849/…