If the API endpoint process the request for more than 60 seconds, phoenix server times out.
To start your Phoenix server:
- Install dependencies with
mix deps.get
- Install Node.js dependencies with
cd assets && npm install
- Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000
from your browser.
You can change http config in config.exs/dev.exs as below to set the timeout.
http: [port: 4001, protocol_options: [idle_timeout: 70_000]]
OR
http: [port: 4001, protocol_options: [idle_timeout: :infinity]]