From 5e4ff5fe059b2c5c7952561f3ed6b8d6668304b1 Mon Sep 17 00:00:00 2001 From: hallouma875 Date: Thu, 3 Dec 2020 17:37:39 +0100 Subject: [PATCH] first commit --- .circleci/config.yml | 9 +++++++-- Procfile.txt | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 Procfile.txt diff --git a/.circleci/config.yml b/.circleci/config.yml index dd8f9d1..5044b61 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -121,10 +121,15 @@ jobs: - checkout - run: name: Heroku Deploy - command: echo todo && false + command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:master + - run: name: Smoke Test - command: echo todo && false + command: if [[ "$HTTPCODE" -ne 200 ]]; then + echo "heroku app not responding, failing deploy" \ + exit 1 \ + HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/` + fi workflows: version: 2 diff --git a/Procfile.txt b/Procfile.txt new file mode 100644 index 0000000..709e0a2 --- /dev/null +++ b/Procfile.txt @@ -0,0 +1 @@ +web: yarn start \ No newline at end of file