我正在尝试在 Windows ServerR2 中使用 Puma over ssl 运行我的 Rails 应用程序。我遵循了 this question 的答案.我已经使用 SSL 目录安装了 puma,并且使用
运行了 puma>puma -b 'ssl://127.0.0.1:3000?cert=C:\Sites\server.crt&&key=C:Sites\server.key' -e development -S puma -C config\puma.rb
此外,我还使用 this link 创建了证书和 key .但是我得到了错误
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/puma-2.15.3/lib/puma/binder.rb:131:in `check': SSL not available in this build (StandardError)
最佳答案
在 rails 5.2.3 和 puma 3.12 中运行良好
gem uninst puma
ridk exec pacman -S mingw-w64-x86_64-openssl
gem inst puma
关于ruby-on-rails - 在 Windows 中使用 Puma 通过 ssl 运行 Rails App,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44510030/