Skip to content

Commit

Permalink
Do not run swoosh memory storage process in production
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermanverschooten committed Jun 20, 2023
1 parent 9dd4689 commit 7f7ddca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
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

0 comments on commit 7f7ddca

Please sign in to comment.