Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch port to 4001 #13

Merged
merged 2 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ jobs:
- name: docker compose up
run: docker compose up --wait
- name: ensure running properly
run: docker compose exec --no-TTY orbit wget --spider -S http://localhost:4000/
run: docker compose exec --no-TTY orbit wget --spider -S http://localhost:4001/
- name: show docker container logs
run: docker compose logs orbit
if: ${{ !cancelled() }}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ RUN mix release --path /app-release
FROM alpine:3.19.1 AS runtime

# HTTP port
EXPOSE 4000
EXPOSE 4001

# Erlang depends on these
RUN apk add --no-cache ncurses-libs libstdc++ libgcc
Expand All @@ -71,6 +71,6 @@ USER orbit
WORKDIR /home/orbit

# Run properly in production
ENV PORT=4000 MIX_ENV=prod TERM=xterm LANG="C.UTF-8"
ENV PORT=4001 MIX_ENV=prod TERM=xterm LANG="C.UTF-8"
COPY --from=elixir --chown=orbit:orbit /app-release .
CMD ["bin/orbit", "start"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

Run the server with `mix phx.server`.

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

## Docker

Expand Down
2 changes: 1 addition & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ config :orbit, Orbit.Repo,
config :orbit, OrbitWeb.Endpoint,
# Binding to loopback ipv4 address prevents access from other machines.
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
http: [ip: {127, 0, 0, 1}, port: 4000],
http: [ip: {127, 0, 0, 1}, port: 4001],
check_origin: false,
code_reloader: true,
debug_errors: true,
Expand Down
2 changes: 1 addition & 1 deletion config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if config_env() == :prod do
"""

host = System.get_env("PHX_HOST") || "example.com"
port = String.to_integer(System.get_env("PORT") || "4000")
port = String.to_integer(System.get_env("PORT") || "1")

config :orbit, OrbitWeb.Endpoint,
url: [host: host, port: 443, scheme: "https"],
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ services:
- DATABASE_DISABLE_SSL=insecure-yes
- SECRET_KEY_BASE=/insecure/insecure/insecure/insecure/insecure/insecure/insecure/
ports:
- 4000
- 4001
Loading