Closed arh1 closed 5 years ago
Just to list them here for discussion:
We iterate over all defined "sites" (hostnames) for:
We use the first defined site for:
Neither (oops -- looks like a bug unless I'm not reading it right):
Any updates regarding this? I'm updating web-starter on forumone/Gates-GrandChallenges-Dev and running into some related issues.
I can't speak to the drush and capistrano stuff, but I can say the salt based web starter formulas support multiple vhosts and multiple DBs with a little manual tweaking. If you are using shared codebase, no modifications to nginx should be necessary -- any hostname will route to the default vagrant.conf, ans passed along via HOST header to the site. You can simply add another DB by copying the DB defaults to project.sls and adding another, like so (2 DBs, one DB user defined):
mysql:
mysql_version: mysql56u
database:
- web
# Added
- newdb
user:
web:
password: 'web'
host: '%'
databases:
- database: web
grants: ['all privileges']
# Added
- database: newdb
grants: ['all privileges']
This could be added as a question in the generator. I'll assign the task to myself so someone is looking at it.
What are you running into in particular -- anything immediate beyond the vhost and database considerations?
Per HipChat today...
We're currently a little ambiguous in whether/how we support multiple sites/hostnames.
This won't work as expected in other use cases:
Solutions generally seem to be:
Even if we do nothing here any time soon, I hope these notes prove helpful!