我已经设置了一个全新的rails应用程序,安装了spree gem(1.1.2)并且能够成功运行Spree并运行但是我没有SSL证书并且我只是想在之前搞乱Spree我购买了证书等。我可以成功地显示可以显示产品等的狂欢页面,但是当我转到/ admin时,它会重定向回网站的主页。这是日志显示的内容:
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)
我已将config / initializers / spree.rb更新为包含
config.allow_ssl_in_production = false
因此它不使用SSL。
这是我的耙子
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
我试过无济于事;我发现的大部分内容都讨论了开启/关闭SSL以进行升级。如果有帮助,我的服务器使用Phusion Passenger进行部署(Site5)..
任何帮助或指示将不胜感激!谢谢!