THIS HAS NOT BEEN UPDATED FOR DRUPAL 10#
Set Up NPLD8 on a Staff MAC#
Set up a staff computer so staff person can work on NPL Drupal site. Local development environment should be Lando or DDEV.
Requirements#
Below is an overview of requirements and how they're used. Download by following the instructions in the next section because some tools need to be installed in a certain order.
- Composer: Tool for dependency management in PHP. Drupal 8+ requires Composer.
Download and Install Software#
-
Download and Install Composer:
- Install Brew: Go to brew.sh and follow directions for Mac.
- Install Composer:
brew install composer
-
Download and install Lando or DDEV.
Bring Up Local Dev Site and Get Database#
-
Log in to Terminus by running one of these commands:
terminus auth:login --machine-token=[add token here]
or
terminus auth:login --email=[email address used in Pantheon]
-
Bring up the local environment. This should provision the VM and bring up the box. You may get the error "the site cannot be reached," which is fine and just indicates that we don't have a database yet.
ddev start
ORlando start
-
Sync the database from Pantheon.
lando pull
OR follow the commands in the npl-d8 README in Github. -
If you get an error, try stopping and starting the environment again. You might need the download and provisioning to happen again.
-
You should see a prompt asking "launch environment." Say yes.
yes