Created
July 6, 2020 15:49
-
-
Save nandhasuhendra/3a73a24f58ee13b1be94b7235f093306 to your computer and use it in GitHub Desktop.
setup file
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
#!/bin/bash | |
ssh-keyscan -H heroku.com >> ~/.ssh/known_hosts | |
mkdir -p /usr/local/lib /usr/local/bin | |
tar -xvzf heroku-linux-amd64.tar.gz -C /usr/local/lib | |
ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku | |
cat > ~/.netrc << EOF | |
machine api.heroku.com | |
login $HEROKU_LOGIN | |
password $HEROKU_API_KEY | |
EOF | |
cat >> ~/.ssh/config << EOF | |
VerifyHostKeyDNS yes | |
StrictHostKeyChecking no | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment