only automigrate in prod env

This commit is contained in:
2022-01-22 20:16:19 -05:00
parent 820ceed6bb
commit 7567281449
3 changed files with 12 additions and 4 deletions

View File

@ -21,6 +21,8 @@ config :cannery, CanneryWeb.Endpoint,
live_view: [signing_salt: "zOLgd3lr"],
registration: System.get_env("REGISTRATION") || "invite"
config :cannery, Cannery.Application, automigrate: false
config :cannery, :generators,
migration: true,
binary_id: true,

View File

@ -15,6 +15,8 @@ config :cannery, Cannery.Repo,
url: "ecto://postgres:postgres@localhost/cannery",
pool_size: 10
config :cannery, Cannery.Application, automigrate: true
# Do not print debug messages in production
config :logger, level: :info