only start automigrator in prod env
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user