2

I'm trying to streamline my deployments for local, staging and production and would like to know if it's possible to invoke the Find and Replace method via Console. I have a multi-config in place, but I'd like to ensure that any hardcoded urls are replaced in the database.

2

You can write a plugin that does this.

Use https://pluginfactory.io/ and check the "Console Command" checkbox and it will generate the boilerplate for you.

Your "Find and Replace" command would follow similar logic to what the FindAndReplaceTask's runStep() method does.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.