I'm using edeliver. How can I insert seeds -- populate a database -- in Phoenix/Elixir on a server? I'm aware of a single way which is run Phoenix console. Is it how it's supposed to be? I don't want a method which should work to your opion, but which haven't tried or tried but a long time ago.
If there's another way without involving edeliver, that's ok as well.
mix run priv/repo/seeds.exs
doesn't work on a server.
Check out the file
./priv/repo/seeds.exs
. You can write whatever you want in there and execute the script withEDIT: With edeliver, people have been reporting success with the following method https://github.com/boldpoker/edeliver/issues/116:
And also: