<commit_before># Heroku Buildpack for Elixir

### Features

* **Easy configuration** with `elixir_buildpack.config` file
* Use **prebuilt Elixir binaries** or build from source
* Mix **dependency caching**
* Adds the free Heroku Postgres **database upon app creation**
* `DATABASE_URL` is made available at compile time
* Allows configuring Erlang
* If your app doesn't have a Procfile, default web task `mix server -p $PORT` will be run.
* Consolidates protocols
* Hex and rebar support


#### Version support info

* Erlang - Prebuilt packages (17.0, R16B03-1, etc)
* Elixir - Prebuilt binaries or build from a branch, tag or a commit


## Usage

#### Create a Heroku app with this buildpack

```
heroku create --buildpack "https://github.com/HashNuke/heroku-buildpack-elixir.git"
```

#### Set the buildpack of an existing Heroku app

```
heroku config:add BUILDPACK_URL="https://github.com/HashNuke/heroku-buildpack-elixir.git"
```

## Configuration

Create a `elixir_buildpack.config` file in your app's root dir. The file's syntax is bash.

If you don't specify a config option, then the default option from the buildpack's [`elixir_buildpack.config`](https://github.com/HashNuke/heroku-buildpack-elixir/blob/master/elixir_buildpack.config) file will be used.


__Here's a full config file with all available options:__

```
# Erlang version
erlang_version=17.0

# Elixir version
elixir_version=0.12.5<commit_msg>Update heroku cli command in README<commit_after># Heroku Buildpack for Elixir

### Features

* **Easy configuration** with `elixir_buildpack.config` file
* Use **prebuilt Elixir binaries** or build from source
* Mix **dependency caching**
* Adds the free Heroku Postgres **database upon app creation**
* `DATABASE_URL` is made available at compile time
* Allows configuring Erlang
* If your app doesn't have a Procfile, default web task `mix server -p $PORT` will be run.
* Consolidates protocols
* Hex and rebar support


#### Version support info

* Erlang - Prebuilt packages (17.0, R16B03-1, etc)
* Elixir - Prebuilt binaries or build from a branch, tag or a commit


## Usage

#### Create a Heroku app with this buildpack

```
heroku create --buildpack "https://github.com/HashNuke/heroku-buildpack-elixir.git"
```

#### Set the buildpack of an existing Heroku app

```
heroku config:set BUILDPACK_URL="https://github.com/HashNuke/heroku-buildpack-elixir.git"
```

## Configuration

Create a `elixir_buildpack.config` file in your app's root dir. The file's syntax is bash.

If you don't specify a config option, then the default option from the buildpack's [`elixir_buildpack.config`](https://github.com/HashNuke/heroku-buildpack-elixir/blob/master/elixir_buildpack.config) file will be used.


__Here's a full config file with all available options:__

```
# Erlang version
erlang_version=17.0

# Elixir version
elixir_version=0.12.5
{'fraction_non_alphanumeric': 0.1055944055944056, 'fraction_numerical': 0.01048951048951049, 'mean_word_length': 4.791497975708502, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '5945622', 'n_tokens_mistral': 965, 'n_tokens_neox': 900, 'n_words': 318}