我正在尝试更新 Rails 应用程序的 Ruby 版本,但在部署到 AWS ElasticBeanstalk 时遇到 Bundler 问题。
将 Ruby 从版本升级2.3.4到2.5.7
我的 ElasticBeanstalk 环境正在运行 Ruby-2.5.7,我能够成功部署该应用程序。
在我的日志中,我在尝试加载网站时遇到错误。
=== puma startup: 2019-10-22 20:41:56 +0000 ===
=== puma startup: 2019-10-22 20:41:56 +0000 ===
[22501] - Worker 0 (pid: 22504) booted, phase: 0
[22501] - Gracefully shutting down workers...
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent …Run Code Online (Sandbox Code Playgroud)