Enable server on endpoint.
parent
d11d591fa9
commit
5991c8d85a
|
@ -12,15 +12,24 @@ config :boardwise,
|
||||||
ecto_repos: [BoardWise.Repo],
|
ecto_repos: [BoardWise.Repo],
|
||||||
generators: [timestamp_type: :utc_datetime]
|
generators: [timestamp_type: :utc_datetime]
|
||||||
|
|
||||||
# Configures the endpoint
|
# https://hexdocs.pm/phoenix/Phoenix.Endpoint.html
|
||||||
config :boardwise, BoardWiseWeb.Endpoint,
|
config :boardwise, BoardWiseWeb.Endpoint,
|
||||||
|
# Starts the web server when the endpoint supervision tree starts.
|
||||||
|
server: true,
|
||||||
|
# Configuration for generating URLs throughout the app.
|
||||||
url: [host: "localhost"],
|
url: [host: "localhost"],
|
||||||
|
# Which webserver adapter to use for serving web requests.
|
||||||
adapter: Phoenix.Endpoint.Cowboy2Adapter,
|
adapter: Phoenix.Endpoint.Cowboy2Adapter,
|
||||||
|
# Responsible for rendering templates whenever there is a failure in the
|
||||||
|
# application.
|
||||||
render_errors: [
|
render_errors: [
|
||||||
formats: [html: BoardWiseWeb.ErrorHTML, json: BoardWiseWeb.ErrorJSON],
|
formats: [html: BoardWiseWeb.ErrorHTML, json: BoardWiseWeb.ErrorJSON],
|
||||||
layout: false
|
layout: false
|
||||||
],
|
],
|
||||||
|
# The name of the pubsub server to use in channels and via the Endpoint
|
||||||
|
# broadcast functions.
|
||||||
pubsub_server: BoardWise.PubSub,
|
pubsub_server: BoardWise.PubSub,
|
||||||
|
# https://hexdocs.pm/phoenix_live_view/welcome.html
|
||||||
live_view: [signing_salt: "NutZSMRk"]
|
live_view: [signing_salt: "NutZSMRk"]
|
||||||
|
|
||||||
# Configures the mailer
|
# Configures the mailer
|
||||||
|
@ -41,8 +50,8 @@ config :esbuild,
|
||||||
version: "0.17.11",
|
version: "0.17.11",
|
||||||
default: [
|
default: [
|
||||||
args: ~w(
|
args: ~w(
|
||||||
js/app.js
|
./js/app.js
|
||||||
js/react/main.jsx
|
./js/react/main.jsx
|
||||||
--bundle
|
--bundle
|
||||||
--target=es2016
|
--target=es2016
|
||||||
--outdir=../priv/static/assets
|
--outdir=../priv/static/assets
|
||||||
|
|
Loading…
Reference in New Issue