From 9a2bc68409525e6e1edff124db16ad6bf92daa4d Mon Sep 17 00:00:00 2001 From: Lex Martinez Date: Tue, 14 Nov 2017 11:13:50 -0500 Subject: [PATCH] heroku deploy with travisCI --- .travis.yml | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index fd810de..35bf49b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,8 @@ language: node_js node_js: - "7" -after_script: - # Install the Heroku gem (or the Heroku toolbelt) - - gem install heroku - # Add your Heroku git repo: - - git remote add heroku git@heroku.com:hapi-blog.git - # Add your Heroku API key: - - export HEROKU_API_KEY= $HEROKU_KEY - # Turn off warnings about SSH keys: - - echo "Host heroku.com" >> ~/.ssh/config - - echo " StrictHostKeyChecking no" >> ~/.ssh/config - - echo " CheckHostIP no" >> ~/.ssh/config - - echo " UserKnownHostsFile=/dev/null" >> ~/.ssh/config - # Clear your current Heroku SSH keys: - - heroku keys:clear - # Add a new SSH key to Heroku - - yes | heroku keys:add - # Push to Heroku! - - yes | git push heroku master \ No newline at end of file +deploy: + provider: heroku + api_key: + secure: $HEROKU_KEY + app: hapi-blog \ No newline at end of file