The team will utilize Docker for local development to help streamline the process and reduce any environment-specific issues that may arise.
We are using Ddev for local development.
You will need the following:
Add your public SSH key to Github and Pantheon account.
Once you have the project dependencies setup on your local environment, you should be able to setup your local environment with the sites.
- Clone the latest version of the main branch from GitHub.
git clone git@github.com:digitalpolygon/smartcontentpoc.git
- Move into the project folder -
cd smartcontentpoc
- Add your identity to github configuration by running the below commands
- git config user.email "your-emailid@digitalpolygon.com"
- git config user.name "Your Name"
- Add your identity to github configuration by running the below commands
- Run composer install to download all project dependencies.
composer install
- Obtain and configure Pantheon.io machine token Get your Pantheon machine token: a. Log in to your Pantheon Dashboard and Generate a Machine Token for DDEV to use. b. Add the API token to the web_environment section in your global DDEV configuration at ~/.ddev/global_config.yaml
web_environment:
- TERMINUS_MACHINE_TOKEN=abcdeyourtoken
- Run
ddev config
and follow onscreen instructions and keep press enter, It will auto select everything. - Run
ddev start
- This will setup the site in local and can be accessed at https://smartcontentpoc.ddev.site
- Click on this link, and finish the new site setup for first time.
- Sync your local db and files from Pantheon dev environment
- Run
ddev pull pantheon
This command will download the Pantheon database and files and bring them into the local DDEV environment. You should now be able to access the project locally.
ddev pull pantheon
- Run