<commit_before>heroku-rails
============

Test hosting rails app on GitHub and deploying to Heroku.<commit_msg>updating README<commit_after>Test Heroku Deployment
============

Creating a sample rails app to show deploying a GitHub-hosted app to Heroku. This turned out to be really easy (the key being `git push heroku master`, same as any Heroku app), so this is all overkill. But it's done now, so here we go.

Steps
----------
(Misteps omitted)

Create repository in GitHub, pull down

    git clone https://github.com/vgmcglaughlin/heroku-rails.git
    cd heroku-rails/

Create rails app

    rails new .
    rails generate controller welcome

Add app/views/welcome/index.html.erb
Update config/routes.rb (not shown, see source)

Run locally, check at http://localhost:3000

    rails server

In Gemfile, replace gem 'sqlite3' with gem 'pg'

    bundle install

Log into Heroku, create new app

    heroku login
    heroku create

Check that remote was added

    git config -e

Commit everything

    git add .
    git commit -m "initial commit"

Push to GitHub

    git push origin master

Push to Heroku

    git push heroku master

Open Heroku deployed app (mine is at http://fast-temple-9343.herokuapp.com/)

    heroku open
{'fraction_non_alphanumeric': 0.08427876823338736, 'fraction_numerical': 0.007293354943273906, 'mean_word_length': 3.2881944444444446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '388710', 'n_tokens_mistral': 387, 'n_tokens_neox': 353, 'n_words': 158}