-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
941b214
commit 9a2bc68
Showing
1 changed file
with
5 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |