Capistrano/Puma : Unable to load application: ArgumentError: missing keyword: :root
Capistrano/Puma : Unable to load application: ArgumentError: missing keyword: :root
Rails6,Mysql,Ubuntu20.04
我想用 Capistrano Puma 部署。
我的网站出现这个错误:
We're sorry, but something went wrong.
If you are the application owner check the logs for more information.
错误进入我的日志:puma.error.log:
/home/ubuntu/apps/appex/shared/bundle/ruby/3.0.0/gems/activestorage-
6.1.4.1/lib/active_storage/service/disk_service.rb:14:in `initialize': missing keyword: :root (ArgumentError)
from /home/ubuntu/apps/appex/shared/bundle/ruby/3.0.0/gems/activestorage-6.1.4.1/lib/active_storage/service.rb:61:in `new'
登录 Nginx:
2021/11/16 10:05:02 [crit] 3361147#3361147: *6 connect() to unix:///home/ubuntu/apps/appex/shared/tmp/sockets/appex-puma.sock failed (2: No such file or directory) while connecting to upstream, client
该错误是由于您环境中的 storage.yml
配置错误造成的。您缺少 root
键。
有关如何设置 ActiveStorage 的更多信息,请阅读 here。
Rails6,Mysql,Ubuntu20.04 我想用 Capistrano Puma 部署。
我的网站出现这个错误:
We're sorry, but something went wrong.
If you are the application owner check the logs for more information.
错误进入我的日志:puma.error.log:
/home/ubuntu/apps/appex/shared/bundle/ruby/3.0.0/gems/activestorage-
6.1.4.1/lib/active_storage/service/disk_service.rb:14:in `initialize': missing keyword: :root (ArgumentError)
from /home/ubuntu/apps/appex/shared/bundle/ruby/3.0.0/gems/activestorage-6.1.4.1/lib/active_storage/service.rb:61:in `new'
登录 Nginx:
2021/11/16 10:05:02 [crit] 3361147#3361147: *6 connect() to unix:///home/ubuntu/apps/appex/shared/tmp/sockets/appex-puma.sock failed (2: No such file or directory) while connecting to upstream, client
该错误是由于您环境中的 storage.yml
配置错误造成的。您缺少 root
键。
有关如何设置 ActiveStorage 的更多信息,请阅读 here。