Created
March 24, 2015 08:26
-
-
Save janbiasi/2c415e74bc6d3252c8dc to your computer and use it in GitHub Desktop.
Single-script heroku application creation for the shell
This file contains hidden or 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/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