WordPress with Composer and different plugins for dev/live.

I’m using a Bedrock-like setup where I handle WordPress core & plugins with Composer. I have my usual plugins in my composer.json within the “require” block, and some dev related plugins in “require-dev”.

On dev/staging I do composer install and on the live site I do composer install --no-dev. Thats fine and all, but when migrating the database from staging to live, WordPress complains that these missing plugins aren’t on the live site (which of course they aren’t thats the point.)

I’m just wondering how people generally solve this, or should I just ignore this message?

0

Leave a Comment