-
Notifications
You must be signed in to change notification settings - Fork 2
Setup WP Pantheon's local instances
Manolo Bevia edited this page Feb 15, 2019
·
4 revisions
- vet-library-cornell-edu (on Cornell University: Library Systems)
- physicalsciences (on sandbox)
- hotel-library (sandbox)
- Get a pantheon account (please ask CUL-IT)
- Install Docker
- Install Lando (
https://github.com/lando/lando/releases
) for setting up a WP local environment using a Pantheon recipe. When you install Lando, PLEASE DOWNLOAD THE BETA VERSION https://github.com/lando/lando/releases/tag/v3.0.0-beta.41 not the release candidate. The last one has so many issues. - Log in pantheon and create a new machine token under
account
. - In terminal:
- Create a folder for your WP site
lando init pantheon
- Choose your pantheon account
- Choose site (ex:physicalsciences)
lando start
- Once you have created a new token: Run this in your terminal for Pantheon authentication:
lando terminus auth:login --machine-token=<YOUR MACHINE TOKEN>
-
lando pull
(pull from db, code, files from PANTHEON DEV) -
lando info
(get the url to run your local WP site. Example: ... "urls": [ "https://localhost:33041", "http://localhost:33042
" ] ...) - Go to your browser and open your WP instances (use the https url from EDGE_SSL)
- Get site admin credentials (ask
mb863@cornell.edu
)
- Get site admin credentials (ask
Other ways to setup a local environment:
https://pantheon.io/docs/local-development/
The good thing about lando
is that you can pull/push db and files vs importing/ exporting from dev to local and viceversa. The best part is that you don't need to have a MAMP environment since docker takes care of that.
Note: the current Lando RC(v3.0.0-rc.1) is not very stable with pantheon recipes. The best option for support is to join lando slack workspace (https://launchpass.com/kalabox
).
Some resources:
- Lando Doc
https://docs.devwithlando.io/tutorials/wordpress.html
- Terminus Doc
https://pantheon.io/docs/terminus/