The local development stack allows college developers to update the theme for their College’s website. This capability should mainly be used to modify CSS for branding imagery and custom page-specific styles.

Getting Access to Your College Pantheon Site

Before using the local development stack for the first time, you will need to complete the following steps:

Mac users may use Pantheon Localdev for local development as an alternative to the following Lando instructions.

Instructions for Using Lando

Hardware requirements: https://docs.lando.dev/basics/installation.html#hardware-requirements

Get the Code

Running Lando

Start Lando.

lando start

Once up and running, Lando will return the site URL. Look under "APPSERVER URLS" for the address to use in your browser. It will be similar to: http://[app].lndo.site.

Download and import the site's database and content files.

lando pull --code=none --database=dev --files=dev

Logging into Drupal

Google Auth will not be available in your development environment. Use the following drush command to login with your MEID:

lando drush uli meid123456

Rebuilding the Dev Environment

When Lando stops working you may need to rebuild the service containers. Do the following procedure to wipe your Lando instance and build a fresh install. Warning: This procedure will delete your database contents and all Lando/Docker images.

lando poweroff
lando destroy
docker system prune
lando start
lando pull

Troubleshooting

Cannot Create Directory

If you encounter this Windows error after downloading and importing the site's database and content files:

Resolving this will require manually creating the symbolic link.

In Git Bash, run the following commands:

rm web
ln -s docroot web

Proceed again with downloading and importing the site's database and content files:

lando pull --code=none --database=dev --files=dev

If you have to use this fix, make sure your code edits are reflected in the /web/ folder in addition to /docroot/ to test changes locally.