-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add create-pantheon-multidev script.
- Loading branch information
1 parent
9acd861
commit 351e27e
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |