Going Local with Drupal 8 on Pantheon in Vlad

So I wanted to see what the difference was between using vlad for drupal 8 vs drupal 7.

Check out Vlad

I set up a Drupal 8 Site on pantheon, cloned the repo as I usually would with a Drupal 7 install on pantheon.

How to clone a Pantheon Repo

Cloned in the latest version of Vlad, and setup the vlad_guts/vlad_settings.yml file as usual, but did add use_host_id: true to the bottom as I usually do to allow ssh passthrough.

Copied down the database and files from the Pantheon environment.

Then I moved sites/example.settings.local.php to sites/default/settings.local.php and added in a hash and the database info.

$settings['hash_salt'] = 'lalalala'; //can be anything

$databases['default']['default'] = array(
  'driver' => 'mysql',
  'database' => 'vladdb',
  'username' => 'vlad',
  'password' => 'wibble',
  'host' => 'localhost',
  'port' => '3306',
  'prefix' => ''
);

Then to use drush 8 I updated it inside of vagrant, through vagrant ssh, with the install instructions @ Drush Install.

You can run drush --version to see the version that you are now currently running.

I was able to run drush cr and drush uli without issues at this point, and the site was working locally.

Be sure to run drush alone to see the updated drush commands if you’re not used to them.

Tags: drupal 8, and web development

Let's Work Together

Our team is anxious to work with you! Get in touch so we can get started!

Let's Go