From 62769e63539091e06af95d6c780b8127b6b0b907 Mon Sep 17 00:00:00 2001 From: guidezSeb Date: Sat, 16 Jan 2021 18:35:56 +0100 Subject: [PATCH] :bug: deploy heroku error 200 --- .circleci/config.yml | 14 +++++++------- Procfile | 2 +- conduit/settings.py | 1 - 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f252de6..595b679 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -64,14 +64,14 @@ jobs: name: Deploy main to heroku command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git main - - run: + - run: name: Smoke test - command: HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/api/articles` - - run: - name: Smoke check - command: if [[ "$HTTPCODE" -ne 200 ]];then - echo "heroku app not responding, failing to deploy" && exit 1; - fi + 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 deploy" + exit 1 + fi docker-build-push: working_directory: /dockerapp docker: diff --git a/Procfile b/Procfile index a96c523..60df632 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: flask db upgrade;gunicorn autoapp:app -b 0.0.0.0:$PORT -w 3 +web: gunicorn autoapp:app -b 0.0.0.0:$PORT -w 3 diff --git a/conduit/settings.py b/conduit/settings.py index a30ab58..b838a6d 100644 --- a/conduit/settings.py +++ b/conduit/settings.py @@ -25,7 +25,6 @@ class Config(object): 'http://localhost:4200', 'http://0.0.0.0:4000', 'http://localhost:4000', - 'https://reverent-swanson-5ad65a.netlify.app', ] JWT_HEADER_TYPE = 'Token'