Spree: disabling SSL / admin forwarding to the site

I installed a new application for rails, installed spree gem (1.1.2) and was able to successfully launch Spree, but I do not have an SSL certificate, and I'm just looking to bother with Spree before I buy a certificate, etc. I can successfully show a spree page that will show products, etc., but when I go to / admin, it redirects back to the main page of the site. This shows the log:

Started GET "/admin" for 76.122.36.219 at Wed Jul 18 15:25:42 -0500 2012
Processing by Spree::Admin::OverviewController#index as HTML
Redirected to http://**************.com/
Completed 302 Found in 139ms (ActiveRecord: 5.1ms)

I updated config / initializers / spree.rb to enable

config.allow_ssl_in_production = false

so that he does not use SSL.

Here is my rake about

About your applications environment
Ruby version              1.8.7 (x86_64-linux)
RubyGems version          1.6.2
Rack version              1.4
Rails version             3.2.6
JavaScript Runtime        therubyracer (V8)
Active Record version     3.2.6
Action Pack version       3.2.6
Active Resource version   3.2.6
Action Mailer version     3.2.6
Active Support version    3.2.6
Middleware                ActionDispatch::Static, Rack::Lock, #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x70d884a28a50>, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Reloader, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, ActionDispatch::Head, Rack::ConditionalGet, Rack::ETag, ActionDispatch::BestStandardsSupport
Application root          /home/********/**************
Environment               development
Database adapter          mysql2
Database schema version   20120718173536

I tried searching to no avail; Most of what I have found discusses enabling / disabling SSL for staging. If this helps, my server uses Phusion Passenger for deployment (Site5).

Any help or direction would be appreciated! Thank!

+2
1
+2

Source: https://habr.com/ru/post/1545294/


All Articles