This uses a fairly standard BLT install. See below for the custom commands.
Command | Description |
---|---|
amp:landosetup | Runs the commands needed for an initial setup of the site. |
amp:start | Start lando. |
amp:behat | Runs behat test on all domains. Optionally list the domains at the end separated by a space (amp:behat amp cci). |
amp:did | Runs composer install then reloads from 'backups/site.sql.gz', by running gh:pulldb you can replaces this with the latest backup. You can add the corresponding number to do a domain switch that you get from the ds command as an argument. |
amp:ds | Switch default domain. |
amp:mds | Create file (blt/md/md-xxx) that will set the default domain on multidev site. |
amp:cex | Export config files and then restore the deleted files. This is helpful if you aren't deleted any config files and want to get past the deleted views. |
amp:snap:create | Create snapshot. |
amp:snap:restore | Restore snapshot. |
amp:checkout | Arguments: branch domain_number . Use this command to checkout a branch and run the commands needed to get setup and ready to go. |
gh:keepalive | This will echo bing every 2 minutes in order to keep a codespace running. Use with caution as if you forget this is running and don't close your codespace, you may run up your minutes. You can use ctrl+c to stop this command from running. |
gh:pulldb | Daily github action pulls in and processes the production database and places it into an artifact. This pulls the latest artifact. |
gh:pullfiles | Daily github action pulls in last pantheon backup and cleans up the private files directory to decrease the size and places it into an artifact. This pulls the latest artifact. |
This repository is setup to run in codespaces. If you are starting from scratch it'll take a little over 15 minutes to run through the setup script. The script will fully start lando and install the site. You will need to set two codespaces secrets in your personal github settings under codespaces located at: https://github.com/settings/codespaces
- AMP_GH_TOKEN_REPO
- AMP_UID
The AMP_GH_TOKEN_REPO
secret will have a github token that has access to the cyberteam repositories with full repo control and AMP_UID
is the user id of your user on the website. You can default to uid 1 if you don't have or know your user id.
Optionally, you can setup two other secrets to automatically login to terminus to connect to Panthon. You can always run the command to login after install as well. These are the secrets to have the login setup for you:
- AMP_TERMINUS_EMAIL
- AMP_TERMINUS_TOKEN
The email secret is the email you use with pantheon and the token can be setup under your settings within your pantheon account.
When starting lando run the blt amp:start
command as that will also set your composer github key with the latest GITHUB_TOKEN variable set by codespaces.
You can create, open, and ssh into your codespaces using Github CLI, see install instructions to install on your local system. Once installed check out the documentation for commands you can use. You can authorize Github CLI by running the following command:
gh auth login