Comments

Peter Marreck

bash>> heroku run mix.ecto.migrate Running mix.ecto.migrate on ⬢ marreckgyr... up, run.7275 (Free) bash: mix.ecto.migrate: command not found

profile/avatar/default
Stefan Jarina

First: the command should be heroku run mix ecto.migrate

profile/avatar/default
Stefan Jarina

Second: If you encounter this error: [error] Could not retrieve migrated versions. This error typically happens when the "schema_migrations" table, which Ecto uses for storing migrationinformation, is already used by another library or for other purposes. you need to turn off the web dyno, call ecto.migrate once again and then turn web dyno back up. The reason is, that web app uses all available connections to database and thus console command can't connect.

Peter Marreck

Messengyr.Web.Endpoint instead of Messengyr.Endpoint, no?

profile/avatar/default
Stefan Jarina

Wondering why simply not change all that in prod.secret.exs (change secrets to env vars) and then just add it to github (remove from .gitignore). that way we don't need to rewrite it again.

Tristan Edwards

@stefanjarina: I suppose that works, although the whole point of prod.secret.exs is that it should contain your credentials in plain text (and therefore not be commited to GitHub).