简体   繁体   English

在Windows的SSL上使用Puma运行Rails App

[英]Running Rails App using Puma over ssl in windows

I am trying to run my rails application using Puma over ssl in Windows ServerR2. 我试图通过Windows ServerR2中的ssl使用Puma运行我的rails应用程序。 I followed an answer of this question . 我回答了这个问题 I have installed puma with the SSL directory and I run puma using 我已经在SSL目录中安装了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

Also, I have created the cert and key, using this link . 另外,我还使用此链接创建了证书和密钥。 But I get the error 但是我得到了错误

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)

works great in rails 5.2.3 and puma 3.12 在rails 5.2.3和puma 3.12中非常有效

gem uninst puma
ridk exec pacman -S mingw-w64-x86_64-openssl
gem inst puma

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM