-
-
Save MarkNijhof/443c00fe346045522db7 to your computer and use it in GitHub Desktop.
pushing to heroku with travis
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
language: ruby | |
rvm: | |
- 1.9.3 | |
#after_install: | |
# I had to move all the steps into the after_script to get them called | |
after_script: | |
- gem install heroku | |
- export HEROKU_API_KEY=<your key here> | |
- yes | ruby travis-deployer.rb | |
- heroku keys:clear | |
- yes | heroku keys:add | |
- git push heroku master # or whatever your heroku push looks like |
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
File.open(".git/config", "a") do |f| | |
f.puts <<-EOF | |
[remote "heroku"] | |
url = url = git@heroku.com:your-app-here.git | |
fetch = +refs/heads/*:refs/remotes/heroku/* # had to change this into remote name instead of app name | |
EOF | |
end | |
known_hosts = File.expand_path("~/.ssh/config") | |
File.open(known_hosts, "a") do |f| | |
f.puts <<-EOF | |
Host heroku.com | |
StrictHostKeyChecking no | |
CheckHostIP no | |
UserKnownHostsFile=/dev/null | |
EOF | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment