daily-tracker

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

dev.exs (3103B)


      1 import Config
      2 
      3 # Configure your database
      4 config :daily_tracker, DailyTracker.Repo,
      5   username: "postgres",
      6   password: "postgres",
      7   hostname: "localhost",
      8   database: "daily_tracker_dev",
      9   stacktrace: true,
     10   show_sensitive_data_on_connection_error: true,
     11   pool_size: 10
     12 
     13 # For development, we disable any cache and enable
     14 # debugging and code reloading.
     15 #
     16 # The watchers configuration can be used to run external
     17 # watchers to your application. For example, we can use it
     18 # to bundle .js and .css sources.
     19 config :daily_tracker, DailyTrackerWeb.Endpoint,
     20   # Binding to loopback ipv4 address prevents access from other machines.
     21   # Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
     22   http: [ip: {127, 0, 0, 1}],
     23   check_origin: false,
     24   code_reloader: true,
     25   debug_errors: true,
     26   secret_key_base: "jFwZh1qj3jHkHQOURKZvpURqMnUK7ITMcIxirWwqzXYG5kTpe0vf6+0bGlq7bsfw",
     27   watchers: [
     28     esbuild: {Esbuild, :install_and_run, [:daily_tracker, ~w(--sourcemap=inline --watch)]},
     29     tailwind: {Tailwind, :install_and_run, [:daily_tracker, ~w(--watch)]}
     30   ]
     31 
     32 # ## SSL Support
     33 #
     34 # In order to use HTTPS in development, a self-signed
     35 # certificate can be generated by running the following
     36 # Mix task:
     37 #
     38 #     mix phx.gen.cert
     39 #
     40 # Run `mix help phx.gen.cert` for more information.
     41 #
     42 # The `http:` config above can be replaced with:
     43 #
     44 #     https: [
     45 #       port: 4001,
     46 #       cipher_suite: :strong,
     47 #       keyfile: "priv/cert/selfsigned_key.pem",
     48 #       certfile: "priv/cert/selfsigned.pem"
     49 #     ],
     50 #
     51 # If desired, both `http:` and `https:` keys can be
     52 # configured to run both http and https servers on
     53 # different ports.
     54 
     55 # Reload browser tabs when matching files change.
     56 config :daily_tracker, DailyTrackerWeb.Endpoint,
     57   live_reload: [
     58     web_console_logger: true,
     59     patterns: [
     60       # Static assets, except user uploads
     61       ~r"priv/static/(?!uploads/).*\.(js|css|png|jpeg|jpg|gif|svg)$",
     62       # Gettext translations
     63       ~r"priv/gettext/.*\.po$",
     64       # Router, Controllers, LiveViews and LiveComponents
     65       ~r"lib/daily_tracker_web/router\.ex$",
     66       ~r"lib/daily_tracker_web/(controllers|live|components)/.*\.(ex|heex)$"
     67     ]
     68   ]
     69 
     70 # Enable dev routes for dashboard and mailbox
     71 config :daily_tracker, dev_routes: true
     72 
     73 # Do not include metadata nor timestamps in development logs
     74 config :logger, :default_formatter, format: "[$level] $message\n"
     75 
     76 # Set a higher stacktrace during development. Avoid configuring such
     77 # in production as building large stacktraces may be expensive.
     78 config :phoenix, :stacktrace_depth, 20
     79 
     80 # Initialize plugs at runtime for faster development compilation
     81 config :phoenix, :plug_init_mode, :runtime
     82 
     83 config :phoenix_live_view,
     84   # Include debug annotations and locations in rendered markup.
     85   # Changing this configuration will require mix clean and a full recompile.
     86   debug_heex_annotations: true,
     87   debug_attributes: true,
     88   # Enable helpful, but potentially expensive runtime checks
     89   enable_expensive_runtime_checks: true
     90 
     91 # Disable swoosh api client as it is only required for production adapters.
     92 config :swoosh, :api_client, false