I also try to do something like that.
I developed a set of plugins and have a core theme that I use on different pages. Now I want to figure out if it is possible to handle different vhost with the same base setup. Means I want to use always the same plugins and themes from my site directory. In the end I want to have two different repositories. One for trellis and one for my wordpress related stuff.
I tried to configure this, but setting up two sites in group_vars/development/wordpress_sites.yml
ends with the problem on vagrant. Both sites are using the same database in the end. The database of the second defined site as mentioned here .
wordpress_sites:
domain1.com:
site_hosts:
- www.domain1.dev
local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root)
admin_email: admin@domain1.com
ssl:
enabled: true
provider: self-signed
cache:
enabled: true
domain2.com:
site_hosts:
- www.domain2.dev
local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root)
admin_email: admin@domain1.com
ssl:
enabled: true
provider: self-signed
cache:
enabled: true
@kasperientje maybe you can also try to setup your second domain as it’s own site