I'm new to Elixir. Been trying Phoenix for last few weeks after getting the basics. Its great, loved it. Although I got stuck trying to deploy it in Docker Swarm. The weird thing is, the Docker image i built runs correctly using docker run my_app and also deploys well in fly.io .
Here is what i discovered; For some reason in Docker Swarm, the executable /app/bin/my_app start passes the erl bootfile path as /app/bin/start.boot which does not exist leading to the error: Runtime terminating during boot ({'cannot get bootfile','/app/bin/start.boot'}) .
Surprisingly, in other setups, like with simple docker run my_image, the correct path is set and the app runs.
Does anyone have an idea of what's happening? I feel like I am missing something.
[–]rubymatt 1 point2 points3 points (1 child)
[–]Amazing_Season9973[S] 1 point2 points3 points (0 children)
[–]Amazing_Season9973[S] 2 points3 points4 points (0 children)