only start automigrator in prod env

This commit is contained in:
2022-01-22 20:12:32 -05:00
committed by oliviasculley
parent 3674eeaf5a
commit 46eed25a94
3 changed files with 11 additions and 3 deletions

View File

@ -20,6 +20,8 @@ config :lokal, LokalWeb.Endpoint,
pubsub_server: Lokal.PubSub,
live_view: [signing_salt: "zOLgd3lr"]
config :lokal, Lokal.Application, automigrate: false
# Configures the mailer
#
# By default it uses the "Local" adapter which stores the emails

View File

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