Requirements
...
Terminus
Terminus provides advanced interaction with Pantheon. Terminus enables you to do almost everything in a terminal that you can do in the Dashboard, and much more.
Notice |
---|
...
Recommended version 1.9, with higher versions a lot of terminus plugins do not work |
---|
Documentations: Terminus Documentation
Terminus Plugins Directory: Plugins
Usage
Use Terminus to perform these and other operations:
...
- Local development environment with Lando
- PHP dependency management with Composer
- Build and testing processes run on CircleCI 2.0
- Behat testing
Theme
Theme based on roots.io boilerplate theme Sage9.
Pantheon
Understand the Pantheon workflow, and how to use separate Dev, Test, and Live environments for the WordPress site.
Local deployment
- Install minimum required packages
- Git clone https://github.com/people-ai/people-ai-website
- Create `lando.env` and fill them, the example provided in a repo `example.env`
- Run in the root folder `lando composer install` to install php dependies and WP plugins
- Go to the theme folder `~/themes/people` and run `composer install && yarn install`
- Run in the theme folder `yarn run build`. This command create docker containers similar to Pantheon with nginx, cache, redis, solr etc. and config them. Use `lando config` to see their configuration.
- Run in the root folder `lando pull` and chose `live` server. This command will copy the database and all uploads folder to local environment.
- Run in the root folder `lando restart`
Deploy to the Pantheon
You have a few options for deploying your code to the Pantheon.
...