Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions GUIDE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,17 @@ We can easily run migrations in production::

$ lein run :duct/migrator

Notice:
Keep in mind that ``:duct.migrator/ragtime`` (descendant of
``:duct/migrator``) depends on ``:duct.database/sql`` (thanks to applying
module ``:duct.module/sql``). That provides database location to the migrator.
It means that unless the ``:duct.database/sql`` (or its descendant like
``:duct.database.sql/hikaricp``) is given in the project configuration,
one of environment variables ``JDBC_DATABASE_URL`` or ``DATABASE_URL``
has to be set to make the command working, e.g.

$ export DATABASE_URL="jdbc:sqlite:db/dev.sqlite"

If you are using Heroku for deployment, this can be added to the
release phase via your Procfile::

Expand Down