2012-07-18 45 views
2

我已經安裝了一個新的rails應用程序,安裝了狂熱寶石(1.1.2),並且能夠成功獲取Spree啓動並運行,但是我沒有SSL證書,我只是想在購買證書之前試用Spree。我可以成功顯示可顯示產品等的大型頁面,但是當我轉到/ admin時,它會重定向到網站的主頁。這就是日誌顯示:Spree:關閉SSL重定向/ 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) 

我已經更新了配置/初始化/ 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)..

任何幫助或方向,將不勝感激!謝謝!

回答