VVV icon indicating copy to clipboard operation
VVV copied to clipboard

Retire Custom Dashboard Provisioning

Open tomjn opened this issue 5 years ago • 4 comments

Right now, there's a special provisioner for the dashboard, with config values to customize it. I believe this is unnecessary, and I'd like to replace it with the following:

  • always provision the official dashboard
  • a custom dashboard can just be another site and use the same mechanism, except without the WP install bit, an adjusted nginx config, custom hostname, and some PHP in the public_html folder. No reason it couldn't be something like dashboard.test
  • a config option to change the dashboard URL so the user gets redirected to dashboard.test or wherever on demand

This greatly simplifies the whole process of creating a dashboard, reduces the needed documentation greatly, and makes it possible to have multiple dashboards at once.

tomjn avatar Sep 27 '19 17:09 tomjn

Would you do a phase out of the dashboard? Still allowing a custom dashboard to be provisioned with the dashboard setting, but displaying a warning to the user that doing this is deprecated?

msaggiorato avatar Oct 08 '19 22:10 msaggiorato

No we'd just provison the official dashboard and give it a proper site provisioner script like the site templates. I'd even argue to move it out of a synced folder. People can set up custom dashboards the same way they set up other sites. If the dashboard URL option is set in vvv-custom.yml, redirect the user to that URL

tomjn avatar Oct 08 '19 23:10 tomjn

So maybe the idea is to convert https://github.com/Varying-Vagrant-Vagrants/VVV/blob/develop/provision/provision-dashboard.sh as vvv-utilities?

GitHub
An open source Vagrant configuration for developing with WordPress - Varying-Vagrant-Vagrants/VVV

Mte90 avatar Jan 02 '20 16:01 Mte90

Not really, we'd still provision it the same way, we'd just remove all the options to configure it. Possibly run a provision.sh if it's there.

Then, if people want a custom dashboard, there's nothing stopping them creating a dashboard.test site and rolling their own or running a fork

tomjn avatar Mar 22 '20 14:03 tomjn