fix for migrate task

This commit is contained in:
Alexander 2019-11-10 22:54:37 +03:00
commit 6a4201e0b4
No known key found for this signature in database
GPG key ID: 7AE1AD696BA41708
3 changed files with 6 additions and 2 deletions

View file

@ -45,7 +45,7 @@ defmodule Mix.Tasks.Pleroma.Config do
if Pleroma.Config.get([:instance, :dynamic_configuration]) do
config_path = "config/#{env}.exported_from_db.secret.exs"
{:ok, file} = File.open(config_path, [:write])
{:ok, file} = File.open(config_path, [:write, :utf8])
IO.write(file, "use Mix.Config\r\n")
Repo.all(Config)