Browse Source

👷 fix name app

pull/1/merge
lamya-rey 5 years ago
parent
commit
92c1ed4313
  1. 4
      .circleci/config.yml

4
.circleci/config.yml

@ -74,14 +74,14 @@ jobs:
- checkout - checkout
- run: - run:
name: Heroku deploy name: Heroku deploy
command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git origin/main
command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/devops-final-back-heroku.git HEAD:main
- run: - run:
name: Smoke test name: Smoke test
command: | command: |
if [[ "$HTTPCODE" -ne 200 ]]; then if [[ "$HTTPCODE" -ne 200 ]]; then
echo "heroku app not responding, failing deploy" \ echo "heroku app not responding, failing deploy" \
exit 1 \ exit 1 \
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://devops-final-back-heroku.herokuapp.com/`
fi fi
docker-build-and-push: docker-build-and-push:

Loading…
Cancel
Save