gpt4 book ai didi

puma - 无法启动 puma-dev : "Unexpected Exit"

转载 作者:行者123 更新时间:2023-12-04 17:43:11 25 4
gpt4 key购买 nike

puma-dev 无法启动并因错误而失败:

unexpected exit:
bash: line 23: exec: puma: not found

puma-dev 没有看到我安装了 puma gem。它似乎被多个 ruby 版本抛弃了。我有一个 .ruby-version 和一个 .ruby-gemset 所以 我不确定为什么它在错误的 ruby​​ 文件夹中查找 彪马 gem ?

顺便说一句,我没有以下任何文件:~/.powconfig .env .powrc .powenv

$ puma-dev
* Directory for apps: /Users/tom/.puma-dev
* Domains: test
* DNS Server port: 9253
* HTTP Server port: 9280
* HTTPS Server port: 9283
! Puma dev listening on http and https
! Booting app 'my_app' on socket /Users/tom/.puma-dev/my_app/tmp/puma-dev-5052.sock
my_app[5056]: bash: no job control in this shell
my_app[5056]: /Users/tom/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem puma (>= 0.a) with executable puma (Gem::GemNotFoundException)
my_app[5056]: from /Users/tom/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems.rb:308:in `activate_bin_path'
my_app[5056]: from /Users/tom/.rvm/gems/ruby-2.5.3@my_app/bin/puma:23:in `<main>'
my_app[5056]: from /Users/tom/.rvm/gems/ruby-2.3.3@global/bin/ruby_executable_hooks:24:in `eval'
my_app[5056]: from /Users/tom/.rvm/gems/ruby-2.3.3@global/bin/ruby_executable_hooks:24:in `<main>'
! Killing 'my_app' (5056)
* App 'my_app' shutdown and cleaned up
! Detecting app 'my_app' dying on start


$ cat .ruby-version
ruby-2.5.3

$ cat .ruby-gemset
my_app

$ which puma
../.rvm/gems/ruby-2.5.3@my_app/bin/puma

最佳答案

我发现了这个问题并在这里发帖希望对其他人有所帮助!为了解决这个问题,我使用了一个旧的 .powenv file .我的猜测是,这会以某种方式告诉 puma-dev 使用正确的 rvm gemset。

关于puma - 无法启动 puma-dev : "Unexpected Exit",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53528247/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com