Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mix task to create database fails #77

Open
ganimp84 opened this issue May 17, 2018 · 1 comment
Open

Mix task to create database fails #77

ganimp84 opened this issue May 17, 2018 · 1 comment

Comments

@ganimp84
Copy link

Hi,

I am trying to create example application using Phoenix with Amnesia. But, having trouble creating the database using the mix task which fails with below error. I am not sure the docs that I found from blogs are up to date or I missed something.

mix amnesia.create -d Database --disk
** (Mix) could not load Database, error: :nofile. Please pass a proper database with the --database option.

mix --version
Erlang/OTP 20 [erts-9.2.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Mix 1.6.1 (compiled with OTP 20)

Example Git repo: https://github.com/ganimp84/amnesia_example

@prashanthsadasivan
Copy link

looks like you haven't created the database module. you need to first define your database (like what's shown in the README here). see how the file uses defdatabase Database? that's the Database identifier in the mix command mix amnesia.create -d Database --disk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants