add touchless docker deploys

This commit is contained in:
2021-09-04 16:14:51 -04:00
committed by oliviasculley
parent eefde769dd
commit 6675c1dfab
12 changed files with 142 additions and 6953 deletions

View File

@ -0,0 +1,18 @@
defmodule Cannery.Repo.Migrator do
use GenServer
require Logger
def start_link(_) do
GenServer.start_link(__MODULE__, [], [])
end
def init(_) do
migrate!()
{:ok, nil}
end
def migrate! do
path = Application.app_dir(:cannery, "priv/repo/migrations")
Ecto.Migrator.run(Cannery.Repo, path, :up, all: true)
end
end