hashbangcode / vlad

Vlad - Vagrant LAMP Ansible Drupal
173 stars 53 forks source link

Drupal 8 Beta released - tweak D8 install script? #92

Closed dixhuit closed 9 years ago

dixhuit commented 10 years ago

Is it worth tweaking the site install script to grab the latest beta/RC rather than the latest dev? It's currently a little tricky to establish which version of D8 you've just downloaded and now that the first beta is here, awareness of specific versions is more important.

philipnorton42 commented 10 years ago

I was thinking the same thing last night. Perhaps we should have more scripts there, one for the latest dev release and one for the most recently released version of D8, via drush or something.

dixhuit commented 10 years ago

Good idea, so long as we don't get too carried away. D6? :D

philipnorton42 commented 9 years ago

So after some playing about I have found the following command, which will clone the latest Drupal 8 beta release:

git ls-remote --tags http://git.drupal.org/project/drupal.git | grep refs/tags/8\.0\.0-beta | xargs -n1 | tail -n 1 |  sed 's/refs\/tags\///' | xargs -I % git clone --branch % http://git.drupal.org/project/drupal.git /var/www/site/docroot

I couldn't get drush to download Drupal 8, so this seemed like the next most sensible step. Because we are cloning a git repo then it shouldn't be too hard to find out what the code contains?

Once Drupal 8 gets released we can just replace this with a 'drush dl drupal' and update the Drupal 7 script to grab the previous version.