2011-01-25 45 views
1

ONLINE Heroku的日誌:Heroku上顯示空白頁,在本地版本的作品

Started GET "/" for 180.246.231.210 at Tue Jan 25 08:25:43 -0800 2011 
    Processing by Store::HomeController#index as HTML 
    Country Load (7.6ms) SELECT "countries".* FROM "countries" WHERE ("countries"."id" IS NULL) LIMIT 1 
    Country Load (1.9ms) SELECT "countries".* FROM "countries" LIMIT 1 
    SQL (2.5ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull 
FROM pg_attribute a LEFT JOIN pg_attrdef d 
ON a.attrelid = d.adrelid AND a.attnum = d.adnum 
WHERE a.attrelid = '"zones"'::regclass 
AND a.attnum > 0 AND NOT a.attisdropped 
ORDER BY a.attnum 
Completed in 15ms 

當地生產日誌:

Started GET "/" for 127.0.0.1 at 2011-01-26 08:10:21 +0700 
    Processing by Store::HomeController#index as HTML 
    LeftSidebarLink Load (0.4ms) SELECT "links".* FROM "links" WHERE ("links"."type" = 'LeftSidebarLink') AND ("links"."target_url" = 'http://localhost:3000/') ORDER BY position LIMIT 1 
    LeftSidebarLink Load (0.2ms) SELECT "links".* FROM "links" WHERE ("links"."type" = 'LeftSidebarLink') AND ("links"."target_url" IN ('/')) ORDER BY position LIMIT 1 
    LeftSidebarLink Load (0.1ms) SELECT "links".* FROM "links" WHERE ("links"."type" = 'LeftSidebarLink') AND ("links"."target_url" IN ('')) ORDER BY position LIMIT 1 
1 
2 
3 
    FeaturedBanner Load (0.3ms) SELECT "featured_banners".* FROM "featured_banners" WHERE (active = '1' OR (date_start >= DATE('2011-01-26') AND DATE('2011-01-26') <= date_end)) 
    Image Load (0.2ms) SELECT "images".* FROM "images" WHERE ("images"."id" = 4) LIMIT 1 
    FooterLink Load (0.2ms) SELECT "links".* FROM "links" WHERE ("links"."type" = 'FooterLink') AND ("links"."parent_id" IS NULL) ORDER BY position 
Rendered store/home/index.html.erb within layouts/store_default (13.0ms) 
Completed 200 OK in 175ms (Views: 63.2ms | ActiveRecord: 1.4ms) 

注:logger.debug的那個1,2,3條線是輸出。

怎麼來兩個完全相同的設置和文件和數據庫設置顯示不同的輸出?爲什麼它不知道如何將/ home/index.html.erb存儲在我的在線應用程序中?

+0

你確定你在Heroku和本地運行相同的代碼嗎?它看起來像你正在運行不同版本的代碼。也許你還沒有把代碼推到Heroku上? – ryanprayogo

+0

不,兩者都完全一樣。 – jaycode

回答

0

只是想一想:你真的把數據包含到Heroku的數據庫中嗎? (即種子數據庫)

+0

這個問題不會再發生,也許是由於最新的heroku更新 – jaycode

相關問題