Skip to content

Commit e60f35a

Browse files
committed
Fix port issue
1 parent a7c22f3 commit e60f35a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

services/app/config/releases.exs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Config
22

3-
port = System.get_env("CODEBATTLE_PORT", "4000")
4-
host = System.get_env("CODEBATTLE_HOSTNAME", "codebattle.hexlet.io")
3+
codebattle_port = System.get_env("CODEBATTLE_PORT", "4000")
4+
codebattle_host = System.get_env("CODEBATTLE_HOSTNAME", "codebattle.hexlet.io")
55
secret_key_base = System.get_env("CODEBATTLE_SECRET_KEY_BASE")
66
live_view_salt = System.get_env("CODEBATTLE_LIVE_VIEW_SALT")
77

@@ -29,8 +29,8 @@ checker_executor =
2929
_ -> Codebattle.CodeCheck.Executor.RemoteDockerRun
3030
end
3131

32-
port = System.get_env("CODEBATTLE_RUNNER_PORT", "4001")
33-
host = System.get_env("CODEBATTLE_RUNNER_HOSTNAME", "codebattle.hexlet.io")
32+
runner_port = System.get_env("CODEBATTLE_RUNNER_PORT", "4001")
33+
runner_host = System.get_env("CODEBATTLE_RUNNER_HOSTNAME", "codebattle.hexlet.io")
3434
secret_key_base = System.get_env("CODEBATTLE_SECRET_KEY_BASE")
3535

3636
config :codebattle, Codebattle.Plugs, rollbar_api_key: System.get_env("ROLLBAR_API_KEY")
@@ -56,8 +56,8 @@ config :codebattle, CodebattleWeb.BotEndpoint,
5656
server: true
5757

5858
config :codebattle, CodebattleWeb.Endpoint,
59-
http: [port: port],
60-
url: [host: host, scheme: "https", port: 443],
59+
http: [port: codebattle_port],
60+
url: [host: codebattle_host, scheme: "https", port: 443],
6161
cache_static_manifest: "priv/static/cache_manifest.json",
6262
secret_key_base: secret_key_base,
6363
live_view: [signing_salt: live_view_salt],
@@ -148,8 +148,8 @@ config :phoenix_meta_tags,
148148
}
149149

150150
config :runner, RunnerWeb.Endpoint,
151-
http: [:inet6, port: port],
152-
url: [host: host, port: 81],
151+
http: [:inet6, port: runner_port],
152+
url: [host: runner_host, port: 81],
153153
secret_key_base: secret_key_base,
154154
server: true
155155

0 commit comments

Comments
 (0)