Skip to content

Commit

Permalink
heroku deploy with travisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
lexmartinez committed Nov 14, 2017
1 parent 941b214 commit 9a2bc68
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
deploy:
provider: heroku
api_key:
secure: $HEROKU_KEY
app: hapi-blog

0 comments on commit 9a2bc68

Please sign in to comment.