在使用Capistrano部署Rails 5(Ruby 2.3.7)应用程序之后,我尝试在“当前”文件夹(没有运气)上运行以下命令:
bundle exec puma -e production -b unix:/home/deploy/my_app/shared/tmp/sockets/puma.sock"
我收到以下错误消息(请注意,我已在Gemfile中将Ruby版本设置为2.3.7,但该错误提到了2.3.0)
bundler: failed to load command: puma (/home/deploy/my_app/shared/bundle/ruby/2.3.0/bin/puma)
Errno::ENOENT: No such file or directory - connect(2) for /home/deploy/my_app/shared/tmp/sockets/puma.sock
/home/deploy/my_app/shared/bundle/ruby/2.3.0/gems/puma-3.12.0/lib/puma/binder.rb:370:in `initialize'
/home/deploy/my_app/shared/bundle/ruby/2.3.0/gems/puma-3.12.0/lib/puma/binder.rb:370:in `new'
/home/deploy/my_app/shared/bundle/ruby/2.3.0/gems/puma-3.12.0/lib/puma/binder.rb:370:in `add_unix_listener'
/home/deploy/my_app/shared/bundle/ruby/2.3.0/gems/puma-3.12.0/lib/puma/binder.rb:141:in `block in parse'
/home/deploy/my_app/shared/bundle/ruby/2.3.0/gems/puma-3.12.0/lib/puma/binder.rb:88:in `each'
/home/deploy/my_app/shared/bundle/ruby/2.3.0/gems/puma-3.12.0/lib/puma/binder.rb:88:in `parse'
/home/deploy/my_app/shared/bundle/ruby/2.3.0/gems/puma-3.12.0/lib/puma/runner.rb:151:in `load_and_bind'
/home/deploy/my_app/shared/bundle/ruby/2.3.0/gems/puma-3.12.0/lib/puma/single.rb:96:in `run'
/home/deploy/my_app/shared/bundle/ruby/2.3.0/gems/puma-3.12.0/lib/puma/launcher.rb:184:in `run'
/home/deploy/my_app/shared/bundle/ruby/2.3.0/gems/puma-3.12.0/lib/puma/cli.rb:78:in `run'
/home/deploy/my_app/shared/bundle/ruby/2.3.0/gems/puma-3.12.0/bin/puma:10:in `<top (required)>'
/home/deploy/my_app/shared/bundle/ruby/2.3.0/bin/puma:23:in `load'
/home/deploy/my_app/shared/bundle/ruby/2.3.0/bin/puma:23:in `<top (required)>'
这是在具有Ubuntu 18的EC2实例上。 任何帮助将不胜感激。