From 6915d5c254ba994e4b658873f1bf4d02fdb2188f Mon Sep 17 00:00:00 2001 From: Wade Wegner Date: Tue, 13 Feb 2018 06:10:23 -0800 Subject: [PATCH] Updates --- .gitignore | 4 +++- .vscode/settings.json | 11 ----------- bin/post-setup.sh | 10 ++++++++-- setup.sh | 10 ++++++++++ 4 files changed, 21 insertions(+), 14 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 93d955a..61c7277 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,6 @@ node_modules .tern-project .settings selenium-client-jars/ -test/artifacts \ No newline at end of file +test/artifacts +.vscode +destroy.sh \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 3854bce..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "terminal.integrated.env.osx": { - "SFDX_SET_CLIENT_IDS": "sfdx-vscode" - }, - "terminal.integrated.env.linux": { - "SFDX_SET_CLIENT_IDS": "sfdx-vscode" - }, - "terminal.integrated.env.windows": { - "SFDX_SET_CLIENT_IDS": "sfdx-vscode" - } -} \ No newline at end of file diff --git a/bin/post-setup.sh b/bin/post-setup.sh index c8fcfbd..64c5102 100644 --- a/bin/post-setup.sh +++ b/bin/post-setup.sh @@ -1,6 +1,12 @@ #!/usr/bin/env bash TARGET_ORG_ALIAS=${1:-} +STAGE=${2:-} -sfdx force:user:permset:assign -n dreamhouse -a "$TARGET_ORG_ALIAS" -sfdx force:data:tree:import -p assets/data/Broker__c-Property__c-plan.json -a "$TARGET_ORG_ALIAS" \ No newline at end of file +# if it's a review app or ci ... +if [ "$STAGE" == "" ]; then + + sfdx force:user:permset:assign -n dreamhouse -a "$TARGET_ORG_ALIAS" + sfdx force:data:tree:import -p assets/data/Broker__c-Property__c-plan.json -a "$TARGET_ORG_ALIAS" + +fi \ No newline at end of file diff --git a/setup.sh b/setup.sh index 94bcaba..f347ea6 100755 --- a/setup.sh +++ b/setup.sh @@ -86,3 +86,13 @@ heroku pipelines:add $HEROKU_PIPELINE_NAME -a $HEROKU_PROD_APP_NAME -s productio heroku ci:config:set -p $HEROKU_PIPELINE_NAME DEV_HUB_SFDX_AUTH_URL=$devHubSfdxAuthUrl heroku ci:config:set -p $HEROKU_PIPELINE_NAME SFDX_AUTH_URL=$devSfdxAuthUrl heroku ci:config:set -p $HEROKU_PIPELINE_NAME SFDX_BUILDPACK_DEBUG=true + +# Clean up script +echo "heroku pipelines:destroy $HEROKU_PIPELINE_NAME +heroku apps:destroy -a $HEROKU_DEV_APP_NAME -c $HEROKU_DEV_APP_NAME +heroku apps:destroy -a $HEROKU_STAGING_APP_NAME -c $HEROKU_STAGING_APP_NAME +heroku apps:destroy -a $HEROKU_PROD_APP_NAME -c $HEROKU_PROD_APP_NAME" > destroy.sh + +echo "" +echo "Run ./destroy.sh to remove resources" +echo ""