Setup GitHub Origin, Heroku Production & Database
~~~~~~~~~~~~~~~~~~~~~~~~~~~
### SETUP GITHUB
> Create GitHub Repo via https://github.com/new/
$ git remote add origin https://github.com/your-username/rails_app_name.git
$ git push --all origin

~~~~~~~~~~~~~~~~~~~~~~~~~~~
### SETUP HEROKU
$ heroku login
$ cd ~/rails_app_name
$ heroku create rails-app-name --remote production
$ heroku create rails-app-name-stage --remote staging
$ git config heroku.remote staging
$ heroku config:set RACK_ENV=staging RAILS_ENV=staging --remote staging

~~~~~~~~~~~~~~~~~~~~~~~~~~~
### RELEASE STEPS
$ git flow feature finish -k Setup

$ git flow release start 0.0.1
$ git push staging release/0.0.1:master
$ rake figaro:heroku
$ heroku config
> Confirm config settings
$ heroku run rake db:migrate

~~~ > TEST TEST TEST @ RAILS-APP-NAME-STAGE.herokuapp.com
~~~ > make necessary changes...
~~~ ... like > ruby & gem 'rails_12factor' > $ bundle
~~~ $ git commit -a -m "FIX > these issues stopping release"
~~~ $ git push staging release/0.0.1:master
... do this until successfully running on stage/prod server
$ git flow release publish 0.0.1
~~~ ... do this often during a hardening process so that others developers have access to try, test, and fix issues with this release version
~~~ ... when everything is in its right place ...

$ git flow release finish -k 0.0.1
$ git push production master
$ rake figaro:heroku[rails-app-name]
$ heroku run rake db:migrate --remote production

$ heroku restart
$ heroku open

~~~~~~~~~~~~~~~~~~~~~~~~~~~
### (OPTIONAL) Setup AWS RDS MySQL Database
> Confirm Heroku is Granted AWS RDS Remote Access
$ heroku config:get DATABASE_URL
$ heroku addons:add amazon_rds url=mysql2://masteruser:pass@dbinstance.123endpoint321.amazonaws.com/databasename
$ heroku config:get DATABASE_URL
> Confirm New Database Settings

### NOTES ~ https://devcenter.heroku.com/articles/multiple-environments
installed 'rails_12factor', included 'bin' gitignore & set ruby version
~~~~~~~~~
+ Gemfile …
~ ruby '2.0.0'
~ gem 'rails_12factor'
$ bundle

$ echo -e "\n# Include bin directory \n\x21/bin/" >> .gitignore
Merge branch 'release/0.0.1' into develop