Skip to content

Commit

Permalink
Tidy up / remove unused code #172
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Feb 7, 2022
1 parent 2628bcb commit 675d1a9
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 38 deletions.
3 changes: 1 addition & 2 deletions lib/auth/init/init.ex
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ defmodule Auth.Init do
key.client_id <> "/" <> key.client_secret <> "/" <> get_auth_url()

end
# mix_env = Envar.get("MIX_ENV")
# IO.inspect("MIX_ENV: #{mix_env} Envar.get/1")

case Envar.get("MIX_ENV") do
"test" ->
# set the AUTH_API_KEY environment variable during test run:
Expand Down
7 changes: 0 additions & 7 deletions lib/auth/init/roles.ex
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,4 @@ defmodule Auth.InitRoles do
Auth.Role.upsert_role(role)
end)
end

# def delete_default_roles do
# Enum.each(roles(), fn role ->
# role = Auth.Role.get_role!(role.id)
# Auth.Role.delete_role(role)
# end)
# end
end
6 changes: 0 additions & 6 deletions lib/auth/init/statuses.ex
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,4 @@ defmodule Auth.InitStatuses do
Auth.Status.upsert_status(status)
end)
end

# def delete_statuses do
# Enum.each(statuses(), fn status ->
# Auth.Status.delete_status(status)
# end)
# end
end
4 changes: 0 additions & 4 deletions lib/auth/status.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,4 @@ defmodule Auth.Status do
def list_statuses do
Repo.all(__MODULE__)
end

# def delete_status(status) do
# Repo.delete(status)
# end
end
20 changes: 1 addition & 19 deletions rel/env.sh.eex
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,4 @@
ip=$(grep fly-local-6pn /etc/hosts | cut -f 1)
export RELEASE_DISTRIBUTION=name
export RELEASE_NODE=$FLY_APP_NAME@$ip
export ELIXIR_ERL_OPTIONS="-proto_dist inet6_tcp"


# Sets and enables heart (recommended only in daemon mode)
# case $RELEASE_COMMAND in
# daemon*)
# HEART_COMMAND="$RELEASE_ROOT/bin/$RELEASE_NAME $RELEASE_COMMAND"
# export HEART_COMMAND
# export ELIXIR_ERL_OPTIONS="-heart"
# ;;
# *)
# ;;
# esac

# Set the release to work across nodes. If using the long name format like
# the one below ([email protected]), you need to also uncomment the
# RELEASE_DISTRIBUTION variable below. Must be "sname", "name" or "none".
# export RELEASE_DISTRIBUTION=name
# export RELEASE_NODE=<%= @release.name %>@127.0.0.1
export ELIXIR_ERL_OPTIONS="-proto_dist inet6_tcp"

0 comments on commit 675d1a9

Please sign in to comment.