Requirements
- PHP Version 7.1.3 or later (must include the php-xml extension and
php-mbstring
enabled). - PHP-CLI
- PHP-CURL
- Composer (~1.8.5)
- Lando (~v3.0.0-rc.1)
- NodeJS (~8.15.1)
- NPM (~6.4.1)
- Yarn (~1.15.2)
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:
...
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.
...