Skip to content

Commit f51fc5d

Browse files
committed
add training deploy command
1 parent 085a6b4 commit f51fc5d

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
function deploy_to_training() {
2+
export TERMINUS_ENV="training"
3+
4+
deploy_args=""
5+
_terminus_login
6+
terminus multidev:delete --delete-branch -y
7+
sleep 60
8+
terminus multidev:create $TERMINUS_SITE.dev $TERMINUS_ENV
9+
terminus drush -- state-set system.maintenance_mode TRUE
10+
_pantheon_complete_deployment
11+
}
12+
13+
_deploy_to_training_desc='deploys the code on Pantheon to TRAINING'
14+
_deploy_to_training_help='
15+
Deploys the code on Pantheon to TRAINING.
16+
17+
# Usage
18+
19+
```bash
20+
uceap deploy-to-training
21+
```
22+
23+
## Description
24+
25+
Creates a new training environment with the latest code and data from DEV.
26+
27+
This command requires the `TERMINUS_SITE` environment variable to be set.
28+
'

0 commit comments

Comments
 (0)