I have installed VDD, but the Drupal directories are just empty? Is that intended behavior?

I have a message during install, saying that guest addtions does not match the installed vb. Do not know whether that can influence this.

Comments

ericrdb’s picture

Category: Bug report » Feature request

Correct. The current feature set provided by vdd does not automatically install Drupal. The vdd web landing page has how-to instructions.

I like the idea of vdd automatically installing Drupal for each site listed. I'll see if I can come up with something for that.

The message regarding the difference in guest additions is because you probably downloaded the most recent Virtualbox (4.3.6) and the guest additions currently included in the vagrant box is 4.2. So, Virtualbox is complaining that the software versions don't match. Shouldn't be an issue, at least it hasn't been for me yet.

Cheers

ericrdb’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new3.49 KB

Ok, this patch will automatically install Drupal sites listed in the config.json, provided that they're Drupal 7 sites.

Current stable Drush 6.20 doesn't install Drupal 8 sites. And, there's some issue with problems installing drupal 6: #2136667: problems installing drupal 6.

Cheers

ericrdb’s picture

Ok, this patch will automatically install D6 sites properly as well as D7 sites.

We can auto-install D8 sites once drush-master is available in the vagrant box by default.

Cheers

danylevskyi’s picture

Frankly speaking I do not think that automatic installation of sites is a good idea. Commonly developer doesn't want to install it automatically. Also we making JSON configuration more tricky. And how user will maintain versions?

jamesrward’s picture

Just wanted to voice my support for @danylevskyi's position. I'd much rather manually install or copy in my codebase after the vm is up. We can take steps to smooth this process but lets not make it automatic.

I do however agree with @lsolesen that the initial impression is a little confusing. Let's work on making the landing page instructions more clear and directly related to sites configured in the config.json instead. It shouldn't suggest instructions for the installation of a site not in the config.json. I'll start working on a patch to do that right away.

ericrdb’s picture

StatusFileSize
new1.46 KB

@jamesrward: I threw this together to for an initial pass on improved documentation. Love feedback or if you want to make additional changes. Thanks!

jamesrward’s picture

@ericrdb Thanks for putting that together. I had something similar setup that was going through all the sites declared in the config.json and putting up Drupal6 Drupal7 and Drupal8 install instructions for each site but it got pretty long. I still think it is best to have too much information on this page rather than not enough but I defer to your judgement on that.

Unfortunately this patch completely broke my instructions and the ones you posted here. The use of a /public site sub-directory renders these drush dl instructions useless. I'm working on a more robust way to parse the document_root to make the instructions compatible with this latest patch.

ericrdb’s picture

Good point - there's additional complexity now that users can define their own document root. I like your thinking that we should have intelligent instructions to accommodate those declarations.

What's your thinking about ideal install instructions?

$ cd to <parent of deepest folder of document root>
$ rm -rf <deepest folder of document root>
$ drush dl drupal-7 --drupal-project-rename=<deepest folder of document root>
$ drush @<site index name, which is also drush alias name> si standard
jamesrward’s picture

That's exactly what I have in mind.

I was contemplating a bash script in the root dir instead but I think we want to keep these actions transparent so users can adjust them to suite their needs. For example I am dropping in a drush make file instead of using drush dl and it would be tough to know how to do that if I didn't see the drush commands used to install the site.

ericrdb’s picture

StatusFileSize
new2.97 KB

Ok, I adjusted the webpage documentation to handle the use case we're discussing: it should show the right paths, regardless of how many users put in their docroot_path or if they even declare a vhost at all.

Also, I noticed that we need to adjust the 'root' value for drush_aliases too, so I included that here.

How's this land? Other items we should include or exclude? Thanks!

danylevskyi’s picture

Great work! Committed, thanks!

  • Commit 90d4e19 on 8.x-1.x authored by ericrdb, committed by danylevskyi:
    Issue #2180273 by ericrdb | lsolesen: Drupal sites not actually...
danylevskyi’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

  • Commit 90d4e19 on 8.x-1.x, berkshelf authored by ericrdb, committed by danylevskyi:
    Issue #2180273 by ericrdb | lsolesen: Drupal sites not actually...