diff --git a/scripts/create-pantheon-multidev b/scripts/create-pantheon-multidev new file mode 100755 index 0000000..a54c9fc --- /dev/null +++ b/scripts/create-pantheon-multidev @@ -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