Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: pr/1
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (18 sloc) 0.799 kb
#!/bin/bash
[ -n "$APP" ] || { echo "error: APP required"; exit 1; }
[ -n "$HEROKU_API_KEY" ] || { echo "error: HEROKU_API_KEY required"; exit 1; }
echo "setting up ~/.ssh"
mkdir -p $HOME/.ssh
cat >$HOME/.ssh/config <<EOF
StrictHostKeyChecking no
EOF
[ -n "$SSH_PRIVATE_KEY" ] && echo "$SSH_PRIVATE_KEY" >$HOME/.ssh/id_rsa
[ -n "$SSH_PUBLIC_KEY" ] && echo "$SSH_PUBLIC_KEY" >$HOME/.ssh/id_rsa.pub
if [ ! -f $HOME/.ssh/id_rsa ]; then
ssh-keygen -f $HOME/.ssh/id_rsa -N "" -t rsa
heroku keys:add --app $APP
heroku config:set --app $APP SSH_PRIVATE_KEY="$(< $HOME/.ssh/id_rsa)" SSH_PUBLIC_KEY="$(< $HOME/.ssh/id_rsa.pub)"
fi
gem install bundler
heroku plugins:install https://github.com/heroku/manager-cli.git
heroku plugins:install https://github.com/ddollar/heroku-anvil.git
Jump to Line
Something went wrong with that request. Please try again.