2016-11-21 95 views
0

我部署了一個jekyll站點到heroku。日誌表明應用程序狀態已從「開始到結束」(如下所示)更改。jekyll heroku部署問題

Starting process with command `bundle exec puma -t 8:32 -w 3 -p 3641` 
[4] Puma starting in cluster mode... 
[4] * Version 3.6.0 (ruby 2.3.1-p112), codename: Sleepy Sunday Serenity 
[4] * Min threads: 8, max threads: 32 
[4] * Environment: production 
[4] * Process workers: 3 
[4] * Phased restart available 
[4] * Listening on tcp://0.0.0.0:3641 
[4] Use Ctrl-C to stop 
Configuration file: /app/_config.yml 
Configuration file: /app/_config.yml 
Generating site: /app -> /app/_site 
[4] - Worker 0 (pid: 6) booted, phase: 0 
Generating site: /app -> /app/_site 
[4] - Worker 2 (pid: 14) booted, phase: 0 
Configuration file: /app/_config.yml 
Generating site: /app -> /app/_site 
[4] - Worker 1 (pid: 10) booted, phase: 0 
heroku[web.1]: State changed from starting to up 

但是,當我打我的網址它給我「化身當前正在呈現的網站。 請稍後再試。」無論等待多久,它說的都是同樣的事情。我多次重複部署,但它仍然提供相同的信息。

請指教。

回答

0

我有這個問題,並通過添加資產:預編譯rake任務到我的Rakefile來修復它。本來,我的Rake文件是這樣的:

task :build do 
    system('bundle exec jekyll build') 
end 

我獨自構建任務並沒有掛鉤到Heroku的構建過程中,造成rack-jekyll服務其等待頁面無限。 下面是適用於我的Rakefile:

task :build do 
    system('bundle exec jekyll build') 
end 

namespace :assets do 
    task precompile: :build 
end