Skip to content

Commit

Permalink
Add create-pantheon-multidev script.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Oct 25, 2016
1 parent 9acd861 commit 351e27e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/create-pantheon-multidev
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
terminus auth login --machine-token=$TERMINUS_TOKEN
terminus site create-env --to-env=$TERMINUS_ENV --from-env=dev

# Somehow the remote might already be there
git remote show | grep -q pantheon || git remote add pantheon $(terminus site connection-info --field=git_url)
git fetch pantheon
git checkout -b $TERMINUS_ENV
git push pantheon $TERMINUS_ENV -f
terminus site set-connection-mode --mode=sftp

0 comments on commit 351e27e

Please sign in to comment.