SSH into Environment
SSH into develop environment. Specify project id.
1
| upsun ssh --project projectid --environment develop
|
Enable module
1
2
| platform drush en auto_anchors -y #enable module
platform drush uli — —uri=https://example.com.au # log me in as user 1
|
After configuring the module, doing content changes.
1
2
| platform drush cr
platform ssh
|
Then when on the Platform server
1
| curl -i -X POST "https://api.fastly.com/service/${FASTLY_API_SERVICE}/purge_all" -H "Fastly-Key: ${FASTLY_API_TOKEN}" -H "Accept: application/json"
|
Deploying to staging
I would use the console to sync the database and assets from the live site to staging unless there are database changes on staging you want to stick, then just git merge develop on your staging branch on your local machine and git push origin staging.
Clear cache
Run command on Diff branch
1
| platform drush cr -e develop
|
Check PHP and Drupal Version
Error log
1
| platform log --project your-project-id
|
1
| platform ssh --project your-project-id --environment main --app your-app-name
|
Clone main repo
1
| git clone --branch main git@github.com:your-org/your-repo.git YOUR-PROJECT
|
SCP file down to local
1
| scp "$(platform ssh --pipe)":web/uploads/diagram.png .
|
scp directory down to local
1
| scp -r "$(platform ssh --pipe)":web/uploads .
|
Tunnel into solr logs
1
| platform tunnel:single -p your-project-id -e main --relationship solr
|