Add all the files in this repo to your existing project (make sure all the script files in ./gitpod/
directory are executable)
chmod +x .gitpod/*
Generate ssh-key in Gitpod
ssh-keygen -b 4096
In Gitpod terminal, run gp env "PANTHEON_SSH_KEY=$(cat ~/.ssh/id_rsa)"
This will add environment variable scoped to this project.
Optional - use the same PANTHEON_SSH_KEY
in all your projects:
PANTHEON_SSH_KEY
in https://gitpod.io/variables*/*
.Add the content of ~/.ssh/id_rsa.pub
to Pantheon
https://pantheon.io/docs/ssh-keys#add-your-ssh-key-to-pantheon
Generate Terminus Token
https://pantheon.io/docs/machine-tokens#create-a-machine-token
Add Terminus token you generated to Gitpod as a new environment variable PROJECT_TERMINUS_TOKEN
(https://gitpod.io/variables)
Update .ddev/config.yaml
to the correct project name
name: project_name
Update line 43 in .ddev/providers/pantheon.yaml
project: project_name.pantheon_environment_name
Recommended:
To speed up the process, enable Prebuilds by follow the instructions @ https://www.gitpod.io/docs/prebuilds#enable-prebuilt-workspaces