Skip to content

Commit

Permalink
remove debug code #172
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Jan 5, 2022
1 parent 974c531 commit c2271e7
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions lib/auth/release.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,6 @@ defmodule Auth.Release do
for repo <- repos() do
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true))
end

# Run Seeds in Prod: https://github.com/dwyl/auth/issues/172#issuecomment-1005194147
IO.inspect(File.cwd!(), label: "cwd")
IO.inspect(File.ls!(File.cwd!()), label: "File.ls!(cwd)")
IO.inspect(__ENV__.file, label: "__ENV__.file")
filepath = "/app/auth/priv/repo/seeds.exs"
IO.inspect(File.exists?(filepath), label: "File.exists?(filepath)")

# relative_to = Path.relative_to(filepath, "/")
# IO.inspect(relative_to, label: "relative_to")
# IO.inspect(File.exists?(relative_to))

# IO.inspect(File.ls!("/"), label: "File.ls!(/)")
# IO.inspect(File.ls!("/app"), label: "File.ls!(/app)")
# IO.puts(" - - - - - - - - - - - - - - - - - - - - - - - ")
# IO.inspect(File.ls!("/app/lib"), label: "File.ls!(/app/lib)")
# IO.inspect(File.ls!("/app/lib/auth-1.6.5"), label: "File.ls!(/app/lib/auth-1.6.5)")
# wildcard = "/app/lib/auth-*"
# found = Path.wildcard(wildcard)
# IO.inspect(found, label: "found")

# IO.puts(" - - - - - - - - - - - - - - - - - - - - - - - ")
# IO.inspect(File.ls!("/app/bin"), label: "File.ls!(/app/bin)")
# IO.inspect(File.exists?("/app/bin/auth"))
# IO.inspect(File.ls!("/app/bin/auth"), label: "File.ls!(/app/bin/auth)")
# IO.puts(" - - - - - - - - - - - - - - - - - - - - - - - ")
# IO.puts("Code.eval_file: #{filepath}")
# Code.eval_file(filepath)
# IO.inspect(System.get_env("AUTH_API_KEY"), label: "AUTH_API_KEY")
end

def rollback(repo, version) do
Expand Down

0 comments on commit c2271e7

Please sign in to comment.