From 9b38a7857fbdceca52b1d13d8dda1d7ef5e9f574 Mon Sep 17 00:00:00 2001 From: guidezSeb Date: Sun, 17 Jan 2021 20:17:43 +0100 Subject: [PATCH] :bug: var HTTPCODE --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 163f371..93aeebd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ jobs: build: docker: - image: circleci/python:3.9-buster-node-browsers - environment: + environment: DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/psdb FLASK_APP: autoapp.py CONDUIT_SECRET: 'something-really-secret' @@ -77,7 +77,7 @@ jobs: - run: name: Smoke test check - command: HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/api/articles` + command: HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/api/articles`; if [[ "$HTTPCODE" -ne 200 ]];then echo "heroku app not responding, failing to deploy" && exit 1; fi