将 Phoenix 应用程序部署到 Gigalixir 时出现问题:"No file named server@127.0.0.1"
Problem deploying Phoenix app to Gigalixir: "No file named server@127.0.0.1"
我正在尝试部署 Hashrockets TIL Phoenix App to Gigalixir。
这是我推送到 Gigalixir 后得到的:
2020-08-23T05:58:55.071975+00:00 til[gigalixir-run]: Attempting to start 'til' on host 'til-6c4c5d7854-ddpfh'
2020-08-23T05:58:55.071987+00:00 til[gigalixir-run]: Attempting health checks on port 4000
2020-08-23T05:58:55.874467+00:00 til[til-6c4c5d7854-ddpfh]: web.1 | started with pid 49
2020-08-23T05:58:57.568099+00:00 til[til-6c4c5d7854-ddpfh]: web.1 | No file named server@127.0.0.1
2020-08-23T05:58:57.976006+00:00 til[til-6c4c5d7854-ddpfh]: web.1 | exited with code 1
2020-08-23T05:58:57.976034+00:00 til[til-6c4c5d7854-ddpfh]: system | sending SIGTERM to all processes
我无法理解错误消息 No file named server@127.0.0.1
。我现在可以做什么?
这个问题的原因是,项目附带的Procfile
可能是为了与Heroku一起使用并且包含
web: MIX_ENV=prod elixir --cookie $OTP_COOKIE --name server@127.0.0.1 --erl '-kernel inet_dist_listen_min 9000' --erl '-kernel inet_dist_listen_max 9000' -S mix phx.server
将文件重命名为 Procfile.disabled
,从而让 Gigalixir 使用它的 default Procfile
解决了这个问题。
我正在尝试部署 Hashrockets TIL Phoenix App to Gigalixir。
这是我推送到 Gigalixir 后得到的:
2020-08-23T05:58:55.071975+00:00 til[gigalixir-run]: Attempting to start 'til' on host 'til-6c4c5d7854-ddpfh'
2020-08-23T05:58:55.071987+00:00 til[gigalixir-run]: Attempting health checks on port 4000
2020-08-23T05:58:55.874467+00:00 til[til-6c4c5d7854-ddpfh]: web.1 | started with pid 49
2020-08-23T05:58:57.568099+00:00 til[til-6c4c5d7854-ddpfh]: web.1 | No file named server@127.0.0.1
2020-08-23T05:58:57.976006+00:00 til[til-6c4c5d7854-ddpfh]: web.1 | exited with code 1
2020-08-23T05:58:57.976034+00:00 til[til-6c4c5d7854-ddpfh]: system | sending SIGTERM to all processes
我无法理解错误消息 No file named server@127.0.0.1
。我现在可以做什么?
这个问题的原因是,项目附带的Procfile
可能是为了与Heroku一起使用并且包含
web: MIX_ENV=prod elixir --cookie $OTP_COOKIE --name server@127.0.0.1 --erl '-kernel inet_dist_listen_min 9000' --erl '-kernel inet_dist_listen_max 9000' -S mix phx.server
将文件重命名为 Procfile.disabled
,从而让 Gigalixir 使用它的 default Procfile
解决了这个问题。