Browse Source

🔧 update Procfile/test_heroku/config.yml

main
Tristan 6 years ago
parent
commit
da4272d7bd
  1. 3
      .circleci/config.yml
  2. 2
      Procfile
  3. 2
      test_heroku.sh

3
.circleci/config.yml

@ -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
- run:
name: Smoke test
command: |

2
Procfile

@ -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

2
test_heroku.sh

@ -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
Loading…
Cancel
Save