update to 1.6
This commit is contained in:
@@ -2,7 +2,9 @@ import Config
|
||||
|
||||
# Configure your database
|
||||
config :lokal, Lokal.Repo,
|
||||
url: "ecto://postgres:postgres@localhost/lokal_dev",
|
||||
url: System.get_env("DATABASE_URL") ||
|
||||
"ecto://postgres:postgres@localhost/lokal_dev",
|
||||
show_sensitive_data_on_connection_error: true,
|
||||
pool_size: 10
|
||||
|
||||
# For development, we disable any cache and enable
|
||||
@@ -10,13 +12,18 @@ config :lokal, Lokal.Repo,
|
||||
#
|
||||
# The watchers configuration can be used to run external
|
||||
# watchers to your application. For example, we use it
|
||||
# with webpack to recompile .js and .css sources.
|
||||
# with esbuild to bundle .js and .css sources.
|
||||
config :lokal, LokalWeb.Endpoint,
|
||||
http: [port: 4000],
|
||||
debug_errors: true,
|
||||
code_reloader: true,
|
||||
# Binding to loopback ipv4 address prevents access from other machines.
|
||||
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
|
||||
http: [ip: {0, 0, 0, 0}, port: 4000],
|
||||
check_origin: false,
|
||||
code_reloader: true,
|
||||
debug_errors: true,
|
||||
secret_key_base: "cSLRa17z1D1qLwQuaw73DMT7BX8oDMkru/rJIsmCdlFypLGRQW3bpqJRrZQtoZJQ",
|
||||
watchers: [
|
||||
# Start the esbuild watcher by calling Esbuild.install_and_run(:default, args)
|
||||
# esbuild: {Esbuild, :install_and_run, [:default, ~w(--sourcemap=inline --watch)]}
|
||||
node: [
|
||||
"node_modules/webpack/bin/webpack.js",
|
||||
"--mode",
|
||||
@@ -57,8 +64,8 @@ config :lokal, LokalWeb.Endpoint,
|
||||
patterns: [
|
||||
~r"priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$",
|
||||
~r"priv/gettext/.*(po)$",
|
||||
~r"lib/lokal_web/.*(live|views)/.*(ex|leex)$",
|
||||
~r"lib/lokal_web/templates/.*(eex|leex)$"
|
||||
~r"lib/lokal_web/(live|views)/.*(ex)$",
|
||||
~r"lib/lokal_web/templates/.*(eex)$"
|
||||
]
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user