{"action":"created","issue":{"url":"https://api.github.com/repos/boldpoker/edeliver/issues/70","repository_url":"https://api.github.com/repos/boldpoker/edeliver","labels_url":"https://api.github.com/repos/boldpoker/edeliver/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/boldpoker/edeliver/issues/70/comments","events_url":"https://api.github.com/repos/boldpoker/edeliver/issues/70/events","html_url":"https://github.com/boldpoker/edeliver/issues/70","id":153380984,"number":70,"title":"Found several ecto repository modules","user":{"login":"monicao","id":165790,"avatar_url":"https://avatars.githubusercontent.com/u/165790?v=3","gravatar_id":"","url":"https://api.github.com/users/monicao","html_url":"https://github.com/monicao","followers_url":"https://api.github.com/users/monicao/followers","following_url":"https://api.github.com/users/monicao/following{/other_user}","gists_url":"https://api.github.com/users/monicao/gists{/gist_id}","starred_url":"https://api.github.com/users/monicao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monicao/subscriptions","organizations_url":"https://api.github.com/users/monicao/orgs","repos_url":"https://api.github.com/users/monicao/repos","events_url":"https://api.github.com/users/monicao/events{/privacy}","received_events_url":"https://api.github.com/users/monicao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-06T05:29:53Z","updated_at":"2016-05-06T17:27:34Z","closed_at":null,"body":"I am deploying a phoenix application using `edeliver 1.2.3`, `ecto 1.1.4`, `swoosh 0.3.0`.\r\n\r\n```\r\nmix edeliver show migrations on production\r\n```\r\n\r\nReturns the following error\r\n\r\n```\r\n  response: ==> Found several ecto repository modules ([MyApp.Mailer, MyApp.Repo]).\r\n    Please specify the repository to use in the edeliver config as ECTO_REPOSITORY env.\r\n<<\"error\">>\r\n```\r\n\r\nThe MyApp.Mailer module looks like this. I am using swoosh to send email https://github.com/swoosh/phoenix_swoosh\r\n\r\n```\r\ndefmodule MyApp.Mailer do\r\n    use Swoosh.Mailer, otp_app: :designdrop\r\nend\r\n```\r\n\r\nIt looks like the Swoosh.Mailer is being picked up as a potential ecto repo.\r\n\r\nI tried setting the ECTO_REPOSITORY environment variable on my local machine before running the command: `ECTO_REPOSITORY=\"MyApp.Repo\" mix edeliver show migrations on production`, but this didn't work.\r\n\r\nTried exporting the ECTO_REPOSITORY in the `~/.profile` file on the production machine, but that didn't work either.\r\n\r\nTried adding \"ECTO_REPOSITORY=\"MyApp.Repo\" to the `.deliver/config` file. No luck.\r\n\r\nThe message \"Please specify the repository to use in the edeliver config as ECTO_REPOSITORY env.\" is a bit confusing.\r\n\r\nHow should I export this environment variable?"},"comment":{"url":"https://api.github.com/repos/boldpoker/edeliver/issues/comments/217506825","html_url":"https://github.com/boldpoker/edeliver/issues/70#issuecomment-217506825","issue_url":"https://api.github.com/repos/boldpoker/edeliver/issues/70","id":217506825,"user":{"login":"monicao","id":165790,"avatar_url":"https://avatars.githubusercontent.com/u/165790?v=3","gravatar_id":"","url":"https://api.github.com/users/monicao","html_url":"https://github.com/monicao","followers_url":"https://api.github.com/users/monicao/followers","following_url":"https://api.github.com/users/monicao/following{/other_user}","gists_url":"https://api.github.com/users/monicao/gists{/gist_id}","starred_url":"https://api.github.com/users/monicao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monicao/subscriptions","organizations_url":"https://api.github.com/users/monicao/orgs","repos_url":"https://api.github.com/users/monicao/repos","events_url":"https://api.github.com/users/monicao/events{/privacy}","received_events_url":"https://api.github.com/users/monicao/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T17:27:34Z","updated_at":"2016-05-06T17:27:34Z","body":"@bharendt Unfortunately using edeliver 1.2.3 did not work. Here are my steps:\r\n\r\n- Updated mix.exs to require `{:edeliver, \"1.2.3\"}`\r\n- `mix deps.clean edeliver`\r\n- `mix deps.get`\r\n- Checked that `deps/edeliver/mix.exs` has version 1.2.3\r\n- Updated the version in my app's `mix.exs` and built a new release with edeliver. \r\n- Checked that the build machine is using edeliver version 1.2.3 (BUILD_AT/deps/edeliver/mix.exs has version 1.2.3)\r\n- `mix edeliver deploy release to production`\r\n- `mix edeliver ping production` returns pong, so all good there.\r\n\r\n- `mix edeliver migrate production up` returns the ` response: ==> Found several ecto repository modules ([Designdrop.Mailer, Designdrop.Repo]).\r\n    Please specify the repository to use in the edeliver config as ECTO_REPOSITORY env.`\r\n- `ECTO_REPOSITORY=\"Designdrop.Repo\" mix edeliver migrate production up` returns the same error as above.\r\n\r\nAny idea what went wrong?"}}