Skip to content

Commit

Permalink
fix: Trying to change configs. #86
Browse files Browse the repository at this point in the history
  • Loading branch information
LuchoTurtle committed Mar 1, 2023
1 parent 5d418e1 commit 4bc84c5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,11 @@ CMD ["/app/bin/server"]
# Appended by flyctl
ENV ECTO_IPV6 true
ENV ERL_AFLAGS "-proto_dist inet6_tcp"

# Appended by flyctl
ENV ECTO_IPV6 true
ENV ERL_AFLAGS "-proto_dist inet6_tcp"

# Appended by flyctl
ENV ECTO_IPV6 true
ENV ERL_AFLAGS "-proto_dist inet6_tcp"
5 changes: 1 addition & 4 deletions config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ import Config
# manifest is generated by the `mix phx.digest` task,
# which you should run after static files are built and
# before starting your production server.
config :liveview_chat, LiveviewChatWeb.Endpoint,
url: [scheme: "https", host: "liveview-chat-example.herokuapp.com", port: 443],
force_ssl: [rewrite_on: [:x_forwarded_proto]],
cache_static_manifest: "priv/static/cache_manifest.json"
config :liveview_chat, LiveviewChatWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json"

# Do not print debug messages in production
config :logger, level: :info
Expand Down
3 changes: 3 additions & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ if config_env() == :prod do
You can generate one by calling: mix phx.gen.secret
"""

host = System.get_env("PHX_HOST") || "example.com"

config :liveview_chat, LiveviewChatWeb.Endpoint,
url: [host: host, port: 443, scheme: "https"],
http: [
# Enable IPv6 and bind on all interfaces.
# Set it to {0, 0, 0, 0, 0, 0, 0, 1} for local network only access.
Expand Down
7 changes: 4 additions & 3 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fly.toml file generated for phoenix-liveview-chat on 2023-02-20T14:11:21Z
# fly.toml file generated for dwyl-phoenix-liveview-chat-example on 2023-03-01T09:31:00Z

app = "phoenix-liveview-chat"
app = "dwyl-phoenix-liveview-chat-example"
kill_signal = "SIGTERM"
kill_timeout = 5
processes = []
Expand All @@ -9,10 +9,11 @@ processes = []
release_command = "/app/bin/migrate"

[env]
PHX_HOST = "phoenix-liveview-chat.fly.dev"
PHX_HOST = "dwyl-phoenix-liveview-chat-example.fly.dev"
PORT = "8080"

[experimental]
allowed_public_ports = []
auto_rollback = true

[[services]]
Expand Down

0 comments on commit 4bc84c5

Please sign in to comment.