Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.63 KB

README.md

File metadata and controls

56 lines (37 loc) · 1.63 KB

Setup

setup.sh

Run once.

  1. Will download the Heroku Toolbelt.
    The toolbelt is just an executable that performs the rest of the commands in new.sh and clean.sh
  2. It will then prompt you to login to Heroku. Setup a new account here: https://signup.heroku.com/login (No purchase necessary)
  3. 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.

Usage

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:

  1. Create the app in Heroku
  2. Add the heroku remote to the .git/config
  3. Adds the pg gem to the end of the Gemfile so it plays well with Postgres.
  4. Push the app to Heroku, which does the following
  5. Builds the app,
  6. Installs all bundled gems & an empty Postgres database.
  7. Runs the migrations to build the tables.
  8. Opens the app in your default browser.

Final URL will be (in this example) https://penguins-rule.herokuapp.com.

Clean up

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]