Packages

Provides `mix needle.new.*` tasks to bootstrap new Phoenix projects.

Current section

Files

Jump to
needle_new templates needle_ctx config dev.exs
Raw

templates/needle_ctx/config/dev.exs

import Config
<%= if @ecto? do %>
# Configure the database
config <%= inspect @ctx_app %>, <%= inspect @ctx_module %>.Repo,
<%= @ecto_adapter_config[:dev] %><% end %><%= if @mailer? do %>
# Configure the mailer
#
# Use "Local" adapter which stores the emails locally. You can see the emails
# in web browser, at "/dev/mailbox".
config <%= inspect @ctx_app %>, <%= inspect @ctx_module %>.Mailer,
adapter: Swoosh.Adapters.Local
# Disable Swoosh API client as it is only required for production adapters.
config :swoosh, :api_client, false<% end %>