No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Drupal 8 / DrupalVM / Pantheon / Composer

Local Prerequisites


Download this repo to your local machine. Extract the zip file and rename the folder to your project name.

cd my-project-name
cd vm

Modify the Drupal-VM config.yml file. Change the hostname and machine_name to your project name. You do not need to modify any other parts of the config.yml.

// vm/config.yml
vagrant_machine_name: myprojectname

Deploy Drupal VM using Vagrant.

vagrant up

Drupal should be installed locally. Edit your /etc/hosts file to access the installation locally.

subl /etc/hosts
// add the line

Visit in the browser!

if you see the Apache start page instead of the Drupal website try:

vagrant halt
vagrant up

Create a new Github repo on Github and then initalise a new Github repo in the /drupal folder.

cd drupal
git init
git add -A .
git commit -m "web and vendor directory from composer install"
git remote add origin
git push origin master

Create a Pantheon website. You can use the dashboard or create it from the CLI using Terminus.

terminus site:create my-project "My Project" "Drupal 8"
terminus connection:set git

Before you push to Pantheon make sure there are no git sub modules

git ls-files --stage | grep 160000
// delete the .git folder from any directories it finds

Push the code to the Pantheon git repo.

// you can get the ssh url from the pantheon dashboard > connection info
git remote add pantheon ssh://
git push --force pantheon master

Upload the MySQL database to Pantheon

vagrant ssh
cd /var/www/drupalvm/drupal
mkdir sql
cd sql
mysqldump -uroot -proot drupal > drupal.sql;
cd sql
mysql -u pantheon -p{random_password} 7 -h {pantheon_hostname} -P 27595 pantheon < drupal.sql

Check the Logs on Pantheon if you are getting a whitescreen

terminus drush <site>.<env> -- watchdog-show --tail