Skip to content

Instantly share code, notes, and snippets.

@nandhasuhendra
Created July 6, 2020 15:49
Show Gist options
  • Save nandhasuhendra/3a73a24f58ee13b1be94b7235f093306 to your computer and use it in GitHub Desktop.
Save nandhasuhendra/3a73a24f58ee13b1be94b7235f093306 to your computer and use it in GitHub Desktop.
setup file
#!/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