You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For local Drupal development, sometimes we have a site that we want to install brand new every time we build it. Currently, drud dev add ... is limited to always pulling down an archive and using that site with the accompanying database. I would like the option to be able to add a site and specify that it should be built from the install profile instead. Typically, we have done this with a new_site: true flag in the databag. I don't think drud even looks at our databags for a build, but perhaps another option is to add a flag to the add command that tells drud to ignore the archived database and build from an install profile. Maybe something like drud dev add client staging --install-profile=client_profile.
changed the title [-]Feature request: allow drud dev add to build a new site from an install profile rather than loading an archive.[/-][+]Add support for install profiles[/+]on Feb 3, 2017
Hey @bdlangton. There is definitely a need for this use case. In the 0.1 version, we decided to adopt a more agnostic approach. We don't assume a connection to a vault backend (metadata) or that a user wants to skip through the site install. That does slow things down for those wanting to immediately get to a live working site OR test a site built from an installation profile. Short term, this can be achieved by running drush through the exec command, but using flags right from the start as you recommended would be a viable alternative. The trick becomes whether we make flags for each CMS supported. This is an important issue to clear up in the initial roadmap, so we will need to get this better defined and tagged to a milestone before we can proceed.
Hi @bdlangton. Sorry for the massively long response time. In addition to the previously mentioned option of appending a ddev exec after a ddev start to essentially wrap drush, there is another alternative that we are pursuing to balance ddev being agnostic while supporting CMS specific functionality. See this issue Create Strategy for Pre/Post Hook Functionality. Once issue #183 is addressed, this specific functionality could be one of the first use cases.
There are many ways to accomplish things in ddev, and I think we've pointed out some of them. I'm going to close this because it's been a year without followup or interest from others. Feel free to reopen!
Activity
[-]Feature request: allow drud dev add to build a new site from an install profile rather than loading an archive.[/-][+]Add support for install profiles[/+]rickmanelius commentedon Mar 19, 2017
Hey @bdlangton. There is definitely a need for this use case. In the 0.1 version, we decided to adopt a more agnostic approach. We don't assume a connection to a vault backend (metadata) or that a user wants to skip through the site install. That does slow things down for those wanting to immediately get to a live working site OR test a site built from an installation profile. Short term, this can be achieved by running drush through the exec command, but using flags right from the start as you recommended would be a viable alternative. The trick becomes whether we make flags for each CMS supported. This is an important issue to clear up in the initial roadmap, so we will need to get this better defined and tagged to a milestone before we can proceed.
cyberswat commentedon Mar 20, 2017
This does raise the point that we may want to consider publishing our roadmap for the ddev product.
cyberswat commentedon Mar 21, 2017
@rickmanelius can you update this issue with links to our roadmaps when they are published?
rickmanelius commentedon May 3, 2017
Hi @bdlangton. Sorry for the massively long response time. In addition to the previously mentioned option of appending a
ddev execafter addev startto essentially wrap drush, there is another alternative that we are pursuing to balance ddev being agnostic while supporting CMS specific functionality. See this issue Create Strategy for Pre/Post Hook Functionality. Once issue #183 is addressed, this specific functionality could be one of the first use cases.At the moment, here is the published roadmap and here is the progress we've made on the various milestones.
rickmanelius commentedon Oct 19, 2017
A long-standing issue, but this is now doable through the post-hooks (https://ddev.readthedocs.io/en/latest/users/extending-commands/). On
ddev rmone could force a database remove and onddev startone could follow-up with the exact parameters passed in through a drush site install. If you'd like, I can put together a demo set and then we can see if that allows us to close this out.rfay commentedon Apr 16, 2018
There are many ways to accomplish things in ddev, and I think we've pointed out some of them. I'm going to close this because it's been a year without followup or interest from others. Feel free to reopen!
build: Use 1Password for key secrets and move some secrets to env vars (