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
$ echo -e "\n# Include bin directory \n\x21/bin/" >> .gitignore

~~~~~~~~~~~~~~~~~~~~~~~~~~~
### 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

$ heroku restart
$ heroku open
~~~ > TEST TEST TEST @ APPNAME-STAGE.herokuapp.com
~~~ > make necessary changes...
~~~ ... like > 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 --remote production
$ heroku run rake db:migrate --remote production

~~~~~~~~~~~~~~~~~~~~~~~~~~~
### (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' & set ruby version
~~~~~~~~~
+ Gemfile …
~ ruby '2.0.0'
~ gem 'rails_12factor'
$ bundle

### NOTES ~ https://devcenter.heroku.com/articles/rails4
Merge branch 'release/0.0.1' into develop