@ -51,7 +51,8 @@ jobs:
- run:
name: Deploy main to heroku
command:
git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:master
git config --global push.default matching
git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git main
name: Smoke test
command: |
@ -1 +1 @@
web: gunicorn autoapp:app -b 0.0.0.0:$PORT -w 3
web: flask db upgrade;gunicorn autoapp:app -b 0.0.0.0:$PORT -w 3
@ -1,7 +1,7 @@
#!/bin/bash
HEROKU_APP_NAME="calm-crag-04725"
HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/`
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