<commit_before># Deployment to Heroku

### Heroku account setup:
- Create a heroku account
- Create new heroku app
- Install heroku tool-belt

### Setup Twitter API for app:
- create new app on www.dev.twitter.com
- get consumer API key

### Local heroku configuration:
- Clone the repository: `git clone https://github.com/d-cent/objective8.git`
- Log in to your Heroku account: `heroku login`
- Add heroku remote: `heroku git:remote -a [APP_NAME]`
- Add heroku postgres add-on: `heroku addons:create heroku-postgresql:hobby-dev`
- Set buildpacks: 


    heroku buildpacks:set heroku/nodejs
    heroku buildpacks:add heroku/clojure


- Set Config Vars on Heroku
  - ADMIN = twitter-[twitter id of admin user]
  - BASE_URI = [app uri]
  - HTTPS_ONLY = true
  - SCHEDULER_INTERVAL_MINUTES = 10
  - TWITTER_CONSUMER_SECRET_TOKEN = [twitter consumer api secret]
  - TWITTER_CONSUMER_TOKEN = [twitter consumer api key]
  - API_BEARER_NAME = [anything]
  - API_BEARER_TOKEN = [anything]

- Push to Heroku<commit_msg>FM + AW | 0 | fixed styling for heroku doc<commit_after># Deployment to Heroku

### Heroku account setup:
- Create a heroku account
- Create new heroku app
- Install heroku tool-belt

### Setup Twitter API for app:
- create new app on www.dev.twitter.com
- get consumer API key

### Local heroku configuration:
- Clone the repository: `git clone https://github.com/d-cent/objective8.git`
- Log in to your Heroku account: `heroku login`
- Add heroku remote: `heroku git:remote -a [APP_NAME]`
- Add heroku postgres add-on: `heroku addons:create heroku-postgresql:hobby-dev`
- Set buildpacks:

        heroku buildpacks:set heroku/nodejs
        heroku buildpacks:add heroku/clojure


- Set Config Vars on Heroku
  - ADMIN = twitter-[twitter id of admin user]
  - BASE_URI = [app uri]
  - HTTPS_ONLY = true
  - SCHEDULER_INTERVAL_MINUTES = 10
  - TWITTER_CONSUMER_SECRET_TOKEN = [twitter consumer api secret]
  - TWITTER_CONSUMER_TOKEN = [twitter consumer api key]
  - API_BEARER_NAME = [anything]
  - API_BEARER_TOKEN = [anything]

- Push to Heroku
{'fraction_non_alphanumeric': 0.09382596013612056, 'fraction_numerical': 0.003403014098201264, 'mean_word_length': 3.7749419953596286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5165921', 'n_tokens_mistral': 739, 'n_tokens_neox': 710, 'n_words': 218}