Skip to content

Commit

Permalink
Delete the DB stuff and put results
Browse files Browse the repository at this point in the history
  • Loading branch information
IciaCarroBarallobre committed Oct 14, 2024
1 parent b06519a commit 1b44afe
Show file tree
Hide file tree
Showing 29 changed files with 62 additions and 585 deletions.
5 changes: 0 additions & 5 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ config :exploring_beam_community, ExploringBeamCommunityWeb.Endpoint,
live_view: [signing_salt: "KEeqDH6/"]

############ CONFIG NEWSLETTER
# Oban
config :exploring_beam_community, Oban,
repo: ExploringBeamCommunity.Repo,
plugins: [Oban.Plugins.Pruner],
queues: [default: 10, scheduled: 5]

# Configure esbuild (the version is required)
config :esbuild,
Expand Down
5 changes: 0 additions & 5 deletions config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,3 @@ config :phoenix, :stacktrace_depth, 20

# Initialize plugs at runtime for faster development compilation
config :phoenix, :plug_init_mode, :runtime

# Disable swoosh api client as it is only required for production adapters.
config :swoosh, :api_client, false

config :exploring_beam_community, ExploringBeamCommunity.Mailer, adapter: Swoosh.Adapters.Local
3 changes: 0 additions & 3 deletions config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,3 @@ config :logger, level: :info

# Runtime production configuration, including reading
# of environment variables, is done on config/runtime.exs.

# Mailer - Disable Swoosh Local Memory Storage
config :swoosh, local: false
14 changes: 0 additions & 14 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,3 @@ if config_env() == :prod do
#
# Check `Plug.SSL` for all available options in `force_ssl`.
end

# Mail
config :swoosh, :api_client, Swoosh.ApiClient.Hackney

config :exploring_beam_community, ExploringBeamCommunity.Mailer,
adapter: Swoosh.Adapters.SMTP,
relay: System.get_env("MAIL_HOST"),
username: System.get_env("MAIL_USERNAME"),
password: System.get_env("MAIL_PASSWORD"),
ssl: false,
tls: :always,
auth: :always,
port: String.to_integer(System.get_env("MAIL_PORT") || "587"),
from: {System.get_env("MAIL_FROM_NAME"), System.get_env("MAIL_FROM_ADDRESS")}
5 changes: 0 additions & 5 deletions config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,8 @@ config :exploring_beam_community, ExploringBeamCommunityWeb.Endpoint,
secret_key_base: "TvG0FoiH9PYqICwdqc4TyJTeNmgKOWfCML3go99a1yxhJ04DDMT3LLkwOQuyO+0T",
server: false

# Disable swoosh api client as it is only required for production adapters.
config :swoosh, :api_client, false

# Print only warnings and errors during test
config :logger, level: :warning

# Initialize plugs at runtime for faster test compilation
config :phoenix, :plug_init_mode, :runtime

config :my_app, MyApp.Mailer, adapter: Swoosh.Adapters.Test
1 change: 0 additions & 1 deletion lib/exploring_beam_community/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ defmodule ExploringBeamCommunity.Application do
children = [
# Start the Ecto repository
ExploringBeamCommunity.Repo,
{Oban, Application.fetch_env!(:exploring_beam_community, Oban)},
# Start the PubSub system
{Phoenix.PubSub, name: ExploringBeamCommunity.PubSub},
# Start the Endpoint (http/https)
Expand Down
26 changes: 0 additions & 26 deletions lib/exploring_beam_community/emails.ex

This file was deleted.

17 changes: 0 additions & 17 deletions lib/exploring_beam_community/emails/email.ex

This file was deleted.

3 changes: 0 additions & 3 deletions lib/exploring_beam_community/mailer.ex

This file was deleted.

67 changes: 0 additions & 67 deletions lib/exploring_beam_community/predef_email.ex

This file was deleted.

127 changes: 0 additions & 127 deletions lib/exploring_beam_community/subscriptions.ex

This file was deleted.

39 changes: 0 additions & 39 deletions lib/exploring_beam_community/subscriptions/subscription.ex

This file was deleted.

23 changes: 0 additions & 23 deletions lib/exploring_beam_community/user.ex

This file was deleted.

Loading

0 comments on commit 1b44afe

Please sign in to comment.