tlietz

tlietz

Ha anybody ran into this problem before? I followed these instructions for a mix deploy: Modifying an Existing App to Run on Gigalixir — GIGALIXIR 1.4.0 documentation

I tried distillery and releases as well and got the same results.

# elixir -v
Erlang/OTP 25 [erts-13.0.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit] [dtrace]

Elixir 1.13.4 (compiled with Erlang/OTP 25)
  defp deps do
    [
      {:bcrypt_elixir, "~> 3.0"},
      {:phoenix, "~> 1.6.11"},
      {:phoenix_ecto, "~> 4.4"},
      {:ecto_sql, "~> 3.6"},
      {:postgrex, ">= 0.0.0"},
      {:phoenix_html, "~> 3.0"},
      {:phoenix_live_reload, "~> 1.2", only: :dev},
      {:phoenix_live_view, "~> 0.17.11"},
      {:floki, ">= 0.30.0", only: :test},
      {:phoenix_live_dashboard, "~> 0.6"},
      {:esbuild, "~> 0.3", runtime: Mix.env() == :dev},
      {:swoosh, "~> 1.3"},
      {:telemetry_metrics, "~> 0.6"},
      {:telemetry_poller, "~> 1.0"},
      {:gettext, "~> 0.18"},
      {:jose, "~> 1.11"},
      {:jason, "~> 1.2"},
      {:joken, "~> 2.4"},
      {:httpoison, "~> 1.8"},
      {:plug_cowboy, "~> 2.5"},
      {:retry, "~> 0.16"},
      {:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false}
    ]
  end
# prod.exs for mix deploy

import Config

config :collaborlist, CollaborlistWeb.Endpoint,
  load_from_system_env: true,
  cache_static_manifest: "priv/static/cache_manifest.json",
  url: [host: "example.com", port: 80]

config :logger, level: :info

config :collaborlist, :http_processor, GoogleCerts.HTTPProcessor.HTTPoisonProcessor

config :collaborlist, CollaborlistWeb.Endpoint,
  http: [port: {:system, "PORT"}],
  url: [host: System.get_env("APP_NAME") <> ".gigalixirapp.com", port: 443],
  secret_key_base: Map.fetch!(System.get_env(), "SECRET_KEY_BASE"),
  server: true

config :collaborlist, Collaborlist.Repo,
  adapter: Ecto.Adapters.Postgres,
  url: System.get_env("DATABASE_URL"),
  ssl: true,
  pool_size: 1
# gigalixir logs -a collaborlist
2022-08-31T11:42:38+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:38+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:39+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:39+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:42+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:42+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:45+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:45+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:48+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:48+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:51.166948+00:00 collaborlist[gigalixir-run]: Attempting to start 'collaborlist' on host 'b'collaborlist-f4b65cb6-9s44k''
2022-08-31T11:42:51.166956+00:00 collaborlist[gigalixir-run]: Attempting health checks on port 4000
2022-08-31T11:42:51+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:51+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:51.564661+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | started with pid 43
2022-08-31T11:42:54+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:54+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:57+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:57+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:58.816111+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | 11:42:58.683 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-08-31T11:42:58.816195+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |
2022-08-31T11:42:58.816427+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |      Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-08-31T11:42:58.816157+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |      Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-08-31T11:42:58.816401+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | 11:42:58.683 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-08-31T11:42:58.816548+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |
2022-08-31T11:42:59.035699+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | 11:42:59.035 [info] Access CollaborlistWeb.Endpoint at http://example.com:443
2022-08-31T11:42:58.982986+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | 11:42:58.982 [info] Running CollaborlistWeb.Endpoint with cowboy 2.9.0 at :::4000 (http)
2022-08-31T11:43:00+00:00 collaborlist[gigalixir]: Stopping container collaborlist
2022-08-31T11:43:25.862435+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | 11:43:25.861 request_id=391279f86129c16873ccfa0244c4e85a [info] GET /
2022-08-31T11:43:26.405558+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | 11:43:26.352 [error] #PID<0.592.0> running CollaborlistWeb.Endpoint (connection #PID<0.591.0>, stream id 1) terminated
2022-08-31T11:43:26.405579+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | Server: collaborlist.gigalixirapp.com:80 (http)
2022-08-31T11:43:26.405581+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | Request: GET /
2022-08-31T11:43:26.405788+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |     ** (Postgrex.Error) ERROR 42P01 (undefined_table) relation "users" does not exist
2022-08-31T11:43:26.405605+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | ** (exit) an exception was raised:
2022-08-31T11:43:26.405835+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |
2022-08-31T11:43:26.405846+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |     query: INSERT INTO "users" ("is_guest","inserted_at","updated_at") VALUES ($1,$2,$3) RETURNING "id"
2022-08-31T11:43:26.405846+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (ecto_sql 3.7.2) lib/ecto/adapters/sql.ex:760: Ecto.Adapters.SQL.raise_sql_call_error/1
2022-08-31T11:43:26.405850+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (ecto 3.7.2) lib/ecto/repo/schema.ex:744: Ecto.Repo.Schema.apply/4
2022-08-31T11:43:26.405887+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (ecto 3.7.2) lib/ecto/repo/schema.ex:367: anonymous fn/15 in Ecto.Repo.Schema.do_insert/4
2022-08-31T11:43:26.406161+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (collaborlist 0.1.0) lib/collaborlist_web/controllers/user_auth.ex:136: CollaborlistWeb.UserAuth.maybe_assign_guest_user/2
2022-08-31T11:43:26.406232+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (phoenix 1.6.11) lib/phoenix/router.ex:346: Phoenix.Router.__call__/2
2022-08-31T11:43:26.406255+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (collaborlist 0.1.0) lib/collaborlist_web/endpoint.ex:1: CollaborlistWeb.Endpoint.plug_builder_call/2
2022-08-31T11:43:26.406177+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (collaborlist 0.1.0) lib/collaborlist_web/router.ex:1: CollaborlistWeb.Router.__pipe_through0__/1
2022-08-31T11:43:26.406307+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (collaborlist 0.1.0) lib/collaborlist_web/endpoint.ex:1: CollaborlistWeb.Endpoint.call/2
2022-08-31T11:43:28.218473+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | 11:43:28.217 request_id=18065e87d076f1525ae083fee76d8073 [info] GET /
2022-08-31T11:43:28.222038+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | 11:43:28.220 [error] #PID<0.595.0> running CollaborlistWeb.Endpoint (connection #PID<0.594.0>, stream id 1) terminated
2022-08-31T11:43:28.222179+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | Server: collaborlist.gigalixirapp.com:80 (http)
2022-08-31T11:43:28.222186+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | Request: GET /
2022-08-31T11:43:28.222223+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | ** (exit) an exception was raised:
2022-08-31T11:43:28.222285+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |     ** (Postgrex.Error) ERROR 42P01 (undefined_table) relation "users" does not exist
2022-08-31T11:43:28.222293+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |
2022-08-31T11:43:28.222410+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |     query: INSERT INTO "users" ("is_guest","inserted_at","updated_at") VALUES ($1,$2,$3) RETURNING "id"
2022-08-31T11:43:28.222411+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (ecto_sql 3.7.2) lib/ecto/adapters/sql.ex:760: Ecto.Adapters.SQL.raise_sql_call_error/1
2022-08-31T11:43:28.222431+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (ecto 3.7.2) lib/ecto/repo/schema.ex:744: Ecto.Repo.Schema.apply/4
2022-08-31T11:43:28.222507+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (ecto 3.7.2) lib/ecto/repo/schema.ex:367: anonymous fn/15 in Ecto.Repo.Schema.do_insert/4
2022-08-31T11:43:28.222611+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (collaborlist 0.1.0) lib/collaborlist_web/controllers/user_auth.ex:136: CollaborlistWeb.UserAuth.maybe_assign_guest_user/2
2022-08-31T11:43:28.222633+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (collaborlist 0.1.0) lib/collaborlist_web/router.ex:1: CollaborlistWeb.Router.__pipe_through0__/1
2022-08-31T11:43:28.222668+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (phoenix 1.6.11) lib/phoenix/router.ex:346: Phoenix.Router.__call__/2
2022-08-31T11:43:28.222705+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (collaborlist 0.1.0) lib/collaborlist_web/endpoint.ex:1: CollaborlistWeb.Endpoint.plug_builder_call/2
2022-08-31T11:43:28.222828+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (collaborlist 0.1.0) lib/collaborlist_web/endpoint.ex:1: CollaborlistWeb.Endpoint.call/2
2022-08-31T11:43:30.322318+00:00 collaborlist[gigalixir-run]: Shutting down 'collaborlist' on host 'b'collaborlist-6789fc677d-bmn5g''
2022-08-31T11:43:32+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.126:4000: i/o timeout
2022-08-31T11:45:45.768057+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | 11:45:45.767 request_id=c543f979cfb27ef29ec6d52a725cfb0d [info] GET /
2022-08-31T11:45:45.770975+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | 11:45:45.769 [error] #PID<0.644.0> running CollaborlistWeb.Endpoint (connection #PID<0.643.0>, stream id 1) terminated
2022-08-31T11:45:45.770985+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | Server: collaborlist.gigalixirapp.com:80 (http)
2022-08-31T11:45:45.771004+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | Request: GET /
2022-08-31T11:45:45.771145+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  | ** (exit) an exception was raised:
2022-08-31T11:45:45.771200+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |     ** (Postgrex.Error) ERROR 42P01 (undefined_table) relation "users" does not exist
2022-08-31T11:45:45.771211+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |
2022-08-31T11:45:45.771212+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |     query: INSERT INTO "users" ("is_guest","inserted_at","updated_at") VALUES ($1,$2,$3) RETURNING "id"
2022-08-31T11:45:45.771332+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (ecto 3.7.2) lib/ecto/repo/schema.ex:744: Ecto.Repo.Schema.apply/4
2022-08-31T11:45:45.771330+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (ecto_sql 3.7.2) lib/ecto/adapters/sql.ex:760: Ecto.Adapters.SQL.raise_sql_call_error/1
2022-08-31T11:45:45.771374+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (ecto 3.7.2) lib/ecto/repo/schema.ex:367: anonymous fn/15 in Ecto.Repo.Schema.do_insert/4
2022-08-31T11:45:45.771487+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (phoenix 1.6.11) lib/phoenix/router.ex:346: Phoenix.Router.__call__/2
2022-08-31T11:45:45.771385+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (collaborlist 0.1.0) lib/collaborlist_web/controllers/user_auth.ex:136: CollaborlistWeb.UserAuth.maybe_assign_guest_user/2
2022-08-31T11:45:45.771485+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (collaborlist 0.1.0) lib/collaborlist_web/router.ex:1: CollaborlistWeb.Router.__pipe_through0__/1
2022-08-31T11:45:45.771514+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (collaborlist 0.1.0) lib/collaborlist_web/endpoint.ex:1: CollaborlistWeb.Endpoint.plug_builder_call/2
2022-08-31T11:45:45.771527+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1  |         (collaborlist 0.1.0) lib/collaborlist_web/endpoint.ex:1: CollaborlistWeb.Endpoint.call/2
2022-08-31T12:37:37+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T12:37:37+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.42.115:4000: connect: connection refused
2022-08-31T12:37:37+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T12:37:37+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.42.115:4000: connect: connection refused
2022-08-31T12:37:40+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T12:37:40+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.42.115:4000: connect: connection refused
2022-08-31T12:37:43+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T12:37:43+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.42.115:4000: connect: connection refused
2022-08-31T12:37:46.656243+00:00 collaborlist[gigalixir-run]: Attempting to start 'collaborlist' on host 'b'collaborlist-6d87bd4966-mxbks''
2022-08-31T12:37:46.656250+00:00 collaborlist[gigalixir-run]: Attempting health checks on port 4000
2022-08-31T12:37:47.009140+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1  | started with pid 44
2022-08-31T12:37:46+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T12:37:46+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.42.115:4000: connect: connection refused
2022-08-31T12:37:49+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T12:37:49+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.42.115:4000: connect: connection refused
2022-08-31T12:37:50.919255+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1  | 12:37:50.877 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-08-31T12:37:50.919274+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1  |      Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-08-31T12:37:50.919320+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1  |
2022-08-31T12:37:50.919433+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1  | 12:37:50.877 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-08-31T12:37:50.919467+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1  |      Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-08-31T12:37:50.919702+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1  |
2022-08-31T12:37:51.017149+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1  | 12:37:51.016 [info] Access CollaborlistWeb.Endpoint at http://example.com:443
2022-08-31T12:37:50.981062+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1  | 12:37:50.980 [info] Running CollaborlistWeb.Endpoint with cowboy 2.9.0 at :::4000 (http)
2022-08-31T12:37:53+00:00 collaborlist[gigalixir]: Stopping container collaborlist
2022-08-31T12:38:23.156550+00:00 collaborlist[gigalixir-run]: Shutting down 'collaborlist' on host 'b'collaborlist-f4b65cb6-9s44k''

Showing Posts 1 to 3

karlosmid

karlosmid

tlietz

tlietz OP

That got my web app appearing, but the LiveView interactivity does not work. Have you fixed the following error before?
Everything works locally on localhost:4000 upon running mix phx.server, and I believe that I have the url configured correctly in prod.exs

2022-08-31T13:46:36.513221+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  | 13:46:36.512 [error] Could not check origin for Phoenix.Socket transport.
2022-08-31T13:46:36.513252+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |
2022-08-31T13:46:36.513255+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  | Origin of the request: https://collaborlist.gigalixirapp.com
2022-08-31T13:46:36.513295+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |
2022-08-31T13:46:36.513315+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  | This happens when you are attempting a socket connection to
2022-08-31T13:46:36.513351+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  | a different host than the one configured in your config/
2022-08-31T13:46:36.513360+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  | files. For example, in development the host is configured
2022-08-31T13:46:36.513385+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  | to "localhost" but you may be trying to access it from
2022-08-31T13:46:36.513409+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  | "127.0.0.1". To fix this issue, you may either:
2022-08-31T13:46:36.513433+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |
2022-08-31T13:46:36.513454+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |   1. update [url: [host: ...]] to your actual host in the
2022-08-31T13:46:36.513484+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |      config file for your current environment (recommended)
2022-08-31T13:46:36.513510+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |
2022-08-31T13:46:36.513531+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |   2. pass the :check_origin option when configuring your
2022-08-31T13:46:36.513556+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |      endpoint or when configuring the transport in your
2022-08-31T13:46:36.513582+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |      UserSocket module, explicitly outlining which origins
2022-08-31T13:46:36.513618+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |      are allowed:
2022-08-31T13:46:36.513639+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |
2022-08-31T13:46:36.513664+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |         check_origin: ["https://example.com",
2022-08-31T13:46:36.513685+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |                        "//another.com:888", "//other.com"]
2022-08-31T13:46:36.513697+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |
2022-08-31T13:46:36.513738+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |

edit:

I got the entire web app working now. Had to add check_origin to prod.exs:

config :collaborlist, CollaborlistWeb.Endpoint,
  # Possibly not needed, but doesn't hurt
  http: [port: {:system, "PORT"}],
  url: [host: System.get_env("APP_NAME") <> ".gigalixirapp.com", port: 443],
  secret_key_base: Map.fetch!(System.get_env(), "SECRET_KEY_BASE"),
  server: true,
  check_origin: ["https://" <> System.get_env("APP_NAME") <> ".gigalixirapp.com"]
karlosmid

karlosmid

Great.
Next time do not edit post, but reply to it, so your reply could also be marked as solution.

— All posts loaded —

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge &amp; Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews