# Hanami

Learn how to deploy Hanami apps with Hatchbox

Hanami has a couple major versions that have some differences in how they work.

When `hanami` is detected in `Gemfile.lock`, it will:

1. Set HANAMI\_ENV=production
2. Run a couple build steps for the specific Hanami version.

## Hanami 2.x

```
bin/hanami db migrate
```

Hanami 2.0-2.1 did not have databases, so this will be skipped.

```
bin/hanami assets compile
```

Hanami 2.0 did not have assets, so this will be skipped.

## Hanami 1.3

```
bundle exec hanami db migrate
bundle exec hanami assets precompile
```
