{"action":"created","issue":{"url":"https://api.github.com/repos/jazzyb/sqlite_ecto/issues/36","labels_url":"https://api.github.com/repos/jazzyb/sqlite_ecto/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/jazzyb/sqlite_ecto/issues/36/comments","events_url":"https://api.github.com/repos/jazzyb/sqlite_ecto/issues/36/events","html_url":"https://github.com/jazzyb/sqlite_ecto/issues/36","id":103953847,"number":36,"title":"\"db\" directory is not created when generating a new phoenix app using --database sqlite","user":{"login":"rbenaley","id":744540,"avatar_url":"https://avatars.githubusercontent.com/u/744540?v=3","gravatar_id":"","url":"https://api.github.com/users/rbenaley","html_url":"https://github.com/rbenaley","followers_url":"https://api.github.com/users/rbenaley/followers","following_url":"https://api.github.com/users/rbenaley/following{/other_user}","gists_url":"https://api.github.com/users/rbenaley/gists{/gist_id}","starred_url":"https://api.github.com/users/rbenaley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbenaley/subscriptions","organizations_url":"https://api.github.com/users/rbenaley/orgs","repos_url":"https://api.github.com/users/rbenaley/repos","events_url":"https://api.github.com/users/rbenaley/events{/privacy}","received_events_url":"https://api.github.com/users/rbenaley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-30T21:49:12Z","updated_at":"2015-08-31T02:09:42Z","closed_at":"2015-08-31T02:09:34Z","body":"When I created a new app using \"mix phoenix.new myapp --database sqlite\" then I executed \"cd myapp && mix ecto.create\" the task has finished with the following error:\r\n\r\n** (Mix) The database for Myapp.Repo couldn't be created, reason given: {:cantopen, 'unable to open database file'}.\r\n\r\nAfter inspecting the end of the file \"myapp/config/dev.exs\" I can see that the database adapter configuration is correct:\r\n\r\n#Configure your database\r\nconfig :myapp, Myapp.Repo,\r\nadapter: Sqlite.Ecto,\r\ndatabase: \"db/myapp_dev.sqlite\",\r\npool_size: 10\r\n\r\nBut the \"db\" directory does not exist in the application directory.\r\n\r\nThe workaround is to create the \"db\" directory prior executing \"mix ecto.create\", it would be desirable to fix that issue.\r\n\r\nAffected and used version: 1.0.0"},"comment":{"url":"https://api.github.com/repos/jazzyb/sqlite_ecto/issues/comments/136234400","html_url":"https://github.com/jazzyb/sqlite_ecto/issues/36#issuecomment-136234400","issue_url":"https://api.github.com/repos/jazzyb/sqlite_ecto/issues/36","id":136234400,"user":{"login":"jazzyb","id":52593,"avatar_url":"https://avatars.githubusercontent.com/u/52593?v=3","gravatar_id":"","url":"https://api.github.com/users/jazzyb","html_url":"https://github.com/jazzyb","followers_url":"https://api.github.com/users/jazzyb/followers","following_url":"https://api.github.com/users/jazzyb/following{/other_user}","gists_url":"https://api.github.com/users/jazzyb/gists{/gist_id}","starred_url":"https://api.github.com/users/jazzyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jazzyb/subscriptions","organizations_url":"https://api.github.com/users/jazzyb/orgs","repos_url":"https://api.github.com/users/jazzyb/repos","events_url":"https://api.github.com/users/jazzyb/events{/privacy}","received_events_url":"https://api.github.com/users/jazzyb/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T02:09:42Z","updated_at":"2015-08-31T02:09:42Z","body":"Thanks!"}}