Skip to content

Instantly share code, notes, and snippets.

@janbiasi
Created March 24, 2015 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janbiasi/2c415e74bc6d3252c8dc to your computer and use it in GitHub Desktop.
Save janbiasi/2c415e74bc6d3252c8dc to your computer and use it in GitHub Desktop.
Single-script heroku application creation for the shell
#!/bin/env bash
# Download latest toolbelt from their website
# https://devcenter.heroku.com/toolbelt-downloads/
heroku login
# E-Mail: ....
# Password: ....
echo -n "Enter your GitHub Repo URL: "
read repourl
# Generate names for handling git repos
basename=$(basename $repourl)
filename=${basename%.*}
git clone $repourl
cd $filename
heroku create
git push heroku master
heroku ps:scale web=1
heroku open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment