Skip to content

Commit

Permalink
Merge pull request #179 from dwyl/hot-link-init-status-images-issue-#178
Browse files Browse the repository at this point in the history
PR: Fix init images by hot linking issue #178
  • Loading branch information
SimonLab committed Feb 28, 2022
2 parents 34331e4 + e63eece commit e121667
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 10 additions & 1 deletion config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,13 @@ config :logger, level: :debug
# To run the Auth App as "prod" on localhost, you will need:
# source .env_prod
# MIX_ENV=prod mix ecto.setup
# MIX_ENV=prod mix phx.server
# MIX_ENV=prod mix phx.server

# had to add this because
dbssl = if System.get_env("HEROKU"), do: true, else: false

config :auth, Auth.Repo,
ssl: dbssl,
url: System.get_env("DATABASE_URL"),
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
size: String.to_integer(System.get_env("POOL_SIZE") || "20")
6 changes: 3 additions & 3 deletions lib/auth_web/templates/init/index.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<%= for {key, value} <- @env do %>
<tr class="bb b--moon-gray">
<td class=""><pre class="mono bold"><%= key %></pre></td>
<td class="center pl4"><img width="30px" src="/images/<%=value%>.png"></td>
<td class="center pl4"><img width="30px" src="https://raw.githubusercontent.com/dwyl/auth/main/assets/static/images/<%=value%>.png"></td>
</tr>
<% end %>
</tbody>
Expand All @@ -29,7 +29,7 @@
<small>(AuthPlug.Token.api_key/1)</small>
</th>
<th class="center pl6">
<img width=30px" src="/images/<%=@api_key_set%>.png" class="center pr3">
<img width=30px" src="https://raw.githubusercontent.com/dwyl/auth/main/assets/static/images/<%=@api_key_set%>.png" class="center pr3">
</th>
</tr>
</thead>
Expand All @@ -47,7 +47,7 @@
<%= for {key, value} <- @env_optional do %>
<tr class="bb b--moon-gray">
<td class=""><pre class="mono bold"><%= key %></pre></td>
<td class="center pl4"><img width="30px" src="/images/<%=value%>.png"></td>
<td class="center pl4"><img width="30px" src="https://raw.githubusercontent.com/dwyl/auth/main/assets/static/images/<%=value%>.png"></td>
</tr>
<% end %>
</tbody>
Expand Down

0 comments on commit e121667

Please sign in to comment.