简体   繁体   中英

Running Rails App using Puma over ssl in windows

I am trying to run my rails application using Puma over ssl in Windows ServerR2. I followed an answer of this question . I have installed puma with the SSL directory and I run puma using

>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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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