vccw-team / vccw

A Vagrant based development environment.
http://vccw.cc/
MIT License
1.02k stars 181 forks source link

Custom plugins enabled by site.yml #253

Open surrealchemist opened 7 years ago

surrealchemist commented 7 years ago

We have some sites that contain plugins that were either written in house at some point and not public, or were pulled from a source like GitHub and aren't in the official Wordpress plugin repository.

The way site.yml works now if you list a plugin the playbook tries to install it. I think it might be a nice improvement to just enable the plugin the if the directory exists instead of failing.

Not sure how the login would work, the ansible might need to check each plugin in the list somehow. If I come up with a solution on my own I'll try and share it.

torounit commented 7 years ago

Please try to set zip url on plugins in site.yml.

plugins:
  - https://github.com/username/reponame/archive/master.zip
surrealchemist commented 7 years ago

I think that might work for one, but some of our plugins aren't public so they just get included into the repo (which is basically the root of the VCCW in my new setup). Not the biggest issue right now as the developers have been importing the full production database backup and then running wp search-replace to set the site up locally. Or for some sites we use the wp-cfm plugin to pull the options.

miya0001 commented 7 years ago

You can add custom script under the name of provision-post.sh that will be executed at the end of the provision. http://vccw.cc/#h2-5