use Mix.Config
require System

# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :webapp, Webapp.Endpoint,
  http: [port: {:system, "HTTP_PORT"}],
  debug_errors: true,
  code_reloader: true,
  check_origin: false,
  watchers: [
    yarn: [
      "start",
      cd: Path.expand("../../../ui", __DIR__)
    ]
  ]

# Watch static and templates for browser reloading.
config :webapp, Webapp.Endpoint,
  live_reload: [
    patterns: [
      ~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
      ~r{priv/gettext/.*(po)$},
      ~r{web/views/.*(ex)$},
      ~r{web/templates/.*(eex)$}
    ]
  ]

# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$level] $message\n"

# Set a higher stacktrace during development. Avoid configuring such
# in production as building large stacktraces may be expensive.
config :phoenix, :stacktrace_depth, 20

# # DB config
# config :webapp, Webapp.Repo,
#   adapter: Ecto.Adapters.Postgres,
#   username: System.get_env("DB_USER"),
#   password: System.get_env("DB_USER_PASSWORD"),
#   database: System.get_env("DB_NAME"),
#   hostname: System.get_env("DB_HOST"),
#   port: 5432,
#   pool_size: 10

use Mix.Config
require System

# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :webapp, Webapp.Endpoint,
  http: [port: {:system, "HTTP_PORT"}],
  debug_errors: true,
  code_reloader: true,
  check_origin: false,
  watchers: [
    yarn: [
      "start",
      cd: Path.expand("../../../ui", __DIR__)
    ]
  ]

# Watch static and templates for browser reloading.
config :webapp, Webapp.Endpoint,
  live_reload: [
    patterns: [
      ~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
      ~r{priv/gettext/.*(po)$},
      ~r{web/views/.*(ex)$},
      ~r{web/templates/.*(eex)$}
    ]
  ]

# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$level] $message\n"

# Set a higher stacktrace during development. Avoid configuring such
# in production as building large stacktraces may be expensive.
config :phoenix, :stacktrace_depth, 20

Remove unused commented code from webapp
Remove unused commented code from webapp

iporaitech/pwr2-docker,iporaitech/pwr2-docker