Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not run swoosh memory storage process in production #5493

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion installer/templates/phx_single/config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import Config<%= if @javascript or @css do %>
config :<%= @web_app_name %>, <%= @endpoint_module %>, cache_static_manifest: "priv/static/cache_manifest.json"<% end %><%= if @mailer do %>

# Configures Swoosh API Client
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: <%= @app_module %>.Finch<% end %>
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: <%= @app_module %>.Finch

# Disable Swoosh Local Memory Storage
config :swoosh, local: false<% end %>

# Do not print debug messages in production
config :logger, level: :info
Expand Down
5 changes: 4 additions & 1 deletion installer/templates/phx_umbrella/config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import Config

<%= if @mailer do %>
# Configures Swoosh API Client
config :swoosh, :api_client, <%= @app_module %>.Finch<% end %>
config :swoosh, :api_client, <%= @app_module %>.Finch

# Disable Swoosh Local Memory Storage
config :swoosh, local: false<% end %>

# Do not print debug messages in production
config :logger, level: :info
Expand Down