ruby on rails - Forcing Spree Commerce to disabling SSL in production mode -
ruby on rails - Forcing Spree Commerce to disabling SSL in production mode -
when alter app (spree commerce) production mode, app running fine, when want go "/admin" page server throws me "this webpage not available" in chrome browser. also, don't know if normal, when server throws me error, server changes url from
http://localhost:3000/ https://localhost/
can help? have admin , log-in pages them work properly? first time developing rails.
as example, these logs produced when seek go http://localhost:3000/login
i, [2014-06-19t17:09:17.368486 #4208] info -- : started "/login" 127.0.0.1 @ 2014-06-19 17:09:17 -0500 i, [2014-06-19t17:09:17.531531 #4208] info -- : processing spree::usersessionscontroller#new html i, [2014-06-19t17:09:17.697253 #4208] info -- : redirected https://localhost/login i, [2014-06-19t17:09:17.697444 #4208] info -- : filter chain halted #<proc:0x00000004f9a0c0@/home/angel/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.0.4/lib/action_controller/metal/force_ssl.rb:65> rendered or redirected i, [2014-06-19t17:09:17.697662 #4208] info -- : completed 301 moved permanently in 166ms (activerecord: 0.0ms)`
install gem avoid problem:
https://github.com/spree/spree_auth_devise
someone had problem before:
spree: turning off ssl redirects /admin site
also:
i had same issue fixed adding:
creating file:
../config/initilizers/spree.rb
spree.config |config| config.allow_ssl_in_production = false #this line end
seems work.
ruby-on-rails ruby ruby-on-rails-4 spree production-environment
Comments
Post a Comment