Closed alex1543 closed 1 year ago
Can you try adding a Process.sleep(:infinity)
as the last line of the file and see if that fixes it?
Everything worked, thanks.
Might I ask why this works?
Starting a supervision tree process does not block the main execution. So when the file finished, the whole program terminated.
Dear Developer, help me understand.
:plug cowboy does not work under Windows. The example starts without errors, but the page does not open http://localhost:4000/ There is no plug in the process list "netstat -a -b". The bug manifests itself regardless of the port: 4000, 8181, 3000, 3001, etc. How can the error be corrected?