Ecto tasks: Resolve relative path using the application directory
authorrinpatch <rinpatch@sdf.org>
Sat, 22 Jun 2019 01:17:04 +0000 (04:17 +0300)
committerrinpatch <rinpatch@sdf.org>
Sat, 22 Jun 2019 01:17:04 +0000 (04:17 +0300)
commitebee9f59d84c31b755611033d4abe2938201a65e
tree641ea42fe1ed87de93890ab75c4bbc90eb933731
parentddd04d1c52a0ce7cc44f14c736cb2271ecf279e9
Ecto tasks: Resolve relative path using the application directory
instead of cwd and load the application before doing anything

In OTP releases cwd != app directory and the configuration is read
only if the application is loaded
lib/mix/pleroma.ex
lib/mix/tasks/pleroma/ecto/ecto.ex
lib/mix/tasks/pleroma/ecto/migrate.ex
lib/mix/tasks/pleroma/ecto/rollback.ex