From cfbfdc81d66799ebe6d17ff7d0d81c262db7e4a2 Mon Sep 17 00:00:00 2001 From: Shammamah Hossain Date: Mon, 29 Jul 2019 16:03:47 -0400 Subject: [PATCH 1/2] Add error message/handling for case in which there is no app on Gallery. --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 528525634..65f0bdbcd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -102,7 +102,7 @@ jobs: echo $PLOTLY_GA_CODE > ~/dash-sample-apps/apps/"$APP"/assets/plotly_ga.js git add ~/dash-sample-apps/apps/"$APP"/assets/plotly_ga.js && git commit -m "Deployed commit: $CIRCLE_SHA1" git remote add $APP https://dash-gallery.plotly.host/GIT/$APP - git push $APP master --force + git push $APP master --force || echo "Deploy failed because there is no such app on Dash Gallery: $APP. Please use the web interface to create an app with this name."; exit 1 done - run: name: Push to production From f89768ff835cc8d338e34563ee891ba4dda00645 Mon Sep 17 00:00:00 2001 From: Shammamah Hossain Date: Tue, 30 Jul 2019 10:00:02 -0400 Subject: [PATCH 2/2] Remove exit. --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 65f0bdbcd..f781720fc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -102,7 +102,7 @@ jobs: echo $PLOTLY_GA_CODE > ~/dash-sample-apps/apps/"$APP"/assets/plotly_ga.js git add ~/dash-sample-apps/apps/"$APP"/assets/plotly_ga.js && git commit -m "Deployed commit: $CIRCLE_SHA1" git remote add $APP https://dash-gallery.plotly.host/GIT/$APP - git push $APP master --force || echo "Deploy failed because there is no such app on Dash Gallery: $APP. Please use the web interface to create an app with this name."; exit 1 + git push $APP master --force || echo "Deploy failed because there is no such app on Dash Gallery: $APP. Please use the web interface to create an app with this name. Continuing deployments..." done - run: name: Push to production