Skip to content

Commit 030c778

Browse files
committed
Switch port to avoid conflict with API
1 parent 6fd8f68 commit 030c778

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ npm-debug.log
3737

3838
.env
3939

40+
data/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ To start your Phoenix server:
44
* Run `mix setup` to install and setup dependencies
55
* Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server`
66

7-
Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
7+
Now you can visit [`localhost:4001`](http://localhost:4001) from your browser.
88

99
Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).
1010

config/dev.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Config
99
config :wfloat, WfloatWeb.Endpoint,
1010
# Binding to loopback ipv4 address prevents access from other machines.
1111
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
12-
http: [ip: {0, 0, 0, 0}, port: 4000],
12+
http: [ip: {0, 0, 0, 0}, port: 4001],
1313
check_origin: false,
1414
code_reloader: true,
1515
debug_errors: true,

config/runtime.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if config_env() == :prod do
3434
"""
3535

3636
host = System.get_env("PHX_HOST") || "example.com"
37-
port = String.to_integer(System.get_env("PORT") || "4000")
37+
port = String.to_integer(System.get_env("PORT") || "4001")
3838

3939
config :wfloat, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
4040

docker-compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ services:
99
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
1010
- PORT=${PORT}
1111
ports:
12-
- 4000:4000
12+
- 4001:4001

0 commit comments

Comments
 (0)