setup.sh
Run once.
- Will download the Heroku Toolbelt.
The toolbelt is just an executable that performs the rest of the commands innew.sh
andclean.sh
- It will then prompt you to login to Heroku. Setup a new account here: https://signup.heroku.com/login (No purchase necessary)
- It will lastly make all
.sh
scripts in this directory executable.
Optionally, add this directory to your PATH or dump these scripts in a directory that's already in your PATH.
new.sh
So, you've got a github repo with an app in it.
Example: https://github.com/lawwantsin/bev_test.git
git clone https://github.com/lawwantsin/bev_test.git
cd bev_test (now within the app's root directory)
../auto-heroku/new.sh {MY-APP-NAME} (if these scripts are not in your path, but are in the `auto-heroku` directory)
Example: ../auto-heroku/new.sh penguins-rule
This will:
- Create the app in Heroku
- Add the heroku remote to the
.git/config
- Adds the
pg gem
to the end of the Gemfile so it plays well with Postgres. - Push the app to Heroku, which does the following
- Builds the app,
- Installs all bundled gems & an empty Postgres database.
- Runs the migrations to build the tables.
- Opens the app in your default browser.
Final URL will be (in this example) https://penguins-rule.herokuapp.com.
clean.sh
After the review process is over and you don't want this app cluttering your Heroku account.
From within the auto-heroku
directory.
./clean.sh penguins-rule
Will remove the app from your account.
Author Lawrence Whiteside [email protected]