<commit_before># Elixir

This is an Elixir engine used to launch Elixir apps on [Nanobox](http://nanobox.io).

## Usage
To use the Elixir engine, specify `elixir` as your `engine` in your boxfile.yml.

```yaml
run.config:
  engine: elixir
```

## Build Process
When preparing your runtime, this engine compiles code by doing the following:

```
> mix local.hex --force
> mix local.rebar --force
> mix deps.get --force
> mix deps.compile --force
> mix compile --force
```

## Helper Scripts
This engine provides helper scripts to make managing your Elixir application easier.

### node-attach
The `node-attach` helper facilitates connecting to an Elixir node that was started with `elixir-start`.

```bash
node-attach
```

### node-start
The `node-start` helper ensures that nodes are started with credentials sufficient to cluster and attach to after they are running.

```bash
# Examples
node-start mix phoenix.server
node-start mix run —no-halt
```

## Configuration Options
This engine exposes configuration options through the [boxfile.yml](http://docs.nanobox.io/boxfile/), a yaml config file used to provision and configure your app's infrastructure when using Nanobox. This engine makes the following options available.

#### Overview of Boxfile Configuration Options
```yaml
run.config:
  engine.config:
    # Elixir Settings
    runtime: elixir-1.3
```

---

#### runtime
Specifies which Elixir runtime to use. The following runtimes are available:

- elixir-1.0
- elixir-1.1
- elixir-1.3
- elixir-1.4

```yaml
run.config:
  engine.config:
    runtime: elixir-1.3
```

---

#### erlang_runtime
Specifies which Erlang runtime to use. The following runtimes are available:

- erlang-18.0
- erlang-18.1
- erlang-18.3
- erlang-19.0
- erlang-19.2
- erlang-19.3<commit_msg>Update README.md with Elixir 1.5<commit_after># Elixir

This is an Elixir engine used to launch Elixir apps on [Nanobox](http://nanobox.io).

## Usage
To use the Elixir engine, specify `elixir` as your `engine` in your boxfile.yml.

```yaml
run.config:
  engine: elixir
```

## Build Process
When preparing your runtime, this engine compiles code by doing the following:

```
> mix local.hex --force
> mix local.rebar --force
> mix deps.get --force
> mix deps.compile --force
> mix compile --force
```

## Helper Scripts
This engine provides helper scripts to make managing your Elixir application easier.

### node-attach
The `node-attach` helper facilitates connecting to an Elixir node that was started with `elixir-start`.

```bash
node-attach
```

### node-start
The `node-start` helper ensures that nodes are started with credentials sufficient to cluster and attach to after they are running.

```bash
# Examples
node-start mix phoenix.server
node-start mix run —no-halt
```

## Configuration Options
This engine exposes configuration options through the [boxfile.yml](http://docs.nanobox.io/boxfile/), a yaml config file used to provision and configure your app's infrastructure when using Nanobox. This engine makes the following options available.

#### Overview of Boxfile Configuration Options
```yaml
run.config:
  engine.config:
    # Elixir Settings
    runtime: elixir-1.4
```

---

#### runtime
Specifies which Elixir runtime to use. The following runtimes are available:

- elixir-1.0
- elixir-1.1
- elixir-1.3
- elixir-1.4 *(default)*
- elixir-1.5

```yaml
run.config:
  engine.config:
    runtime: elixir-1.5
```

---

#### erlang_runtime
Specifies which Erlang runtime to use. The following runtimes are available:

- erlang-18.0
- erlang-18.1
- erlang-18.3
- erlang-19.0
- erlang-19.2
- erlang-19.3 *(default)*
{'fraction_non_alphanumeric': 0.11335920177383592, 'fraction_numerical': 0.017738359201773836, 'mean_word_length': 3.850806451612903, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, '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': '3558452', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1126, 'n_words': 416}