Skip to content

Commit

Permalink
start working on v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Nov 26, 2024
1 parent 3f8aba5 commit 8e6906d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 343 deletions.
11 changes: 0 additions & 11 deletions examples/phoenix_project/lib/hello/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@ defmodule Hello.Application do

@impl true
def start(_type, _args) do
if Application.get_env(:testcontainers, :enabled, false) do
{:ok, _container} = Testcontainers.Ecto.postgres_container(app: :hello)

# to use mysql, change
# `adapter: Ecto.Adapters.Postgres`
# in lib/hello/repo.ex, to
# `adapter: Ecto.Adapters.MyXQL`

# {:ok, _container} = Testcontainers.Ecto.mysql_container(app: :hello)
end

children = [
HelloWeb.Telemetry,
Hello.Repo,
Expand Down
8 changes: 4 additions & 4 deletions examples/phoenix_project/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ defmodule Hello.MixProject do
[
setup: [
"deps.get",
#"ecto.setup",
"ecto.setup",
"assets.setup",
"assets.build"
],
#"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
#"ecto.reset": ["ecto.drop", "ecto.setup"],
# test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
"assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"],
"assets.build": ["tailwind default", "esbuild default"],
"assets.deploy": ["tailwind default --minify", "esbuild default --minify", "phx.digest"]
Expand Down
328 changes: 0 additions & 328 deletions lib/ecto.ex

This file was deleted.

0 comments on commit 8e6906d

Please sign in to comment.