簡體   English   中英

passenger-install-apache2-模塊可以在一台服務器上運行多個應用程序。 有些不對勁

[英]passenger-install-apache2-module to run several applications on one server. Something not right

我已經為Ubuntu服務器配置了passenger-install-apache2-module,以便可以在一台服務器上運行多個Rails應用程序。 我已經運行了一個測試應用程序,該應用程序可以使用webbrick正常運行,但是當我重新啟動apache服務器時,出現了“很抱歉,但是出了點問題”錯誤。 當我將文件放置在/public/index.html中時,該文件可以正常顯示,但是一旦應用程序依賴於rails生成內容時,就會遇到相同的錯誤。

在哪里可以找到日志,以便找到更多信息? 還是有人有更好的主意?

更新:我更改了日志文件,現在在生產日志中得到此錯誤:

Started GET "/users" for 77.100.43.95 at 2012-07-06 07:38:48 +0000
Processing by UsersController#index as HTML
Rendered users/index.html.erb within layouts/application (4.2ms)
Completed 500 Internal Server Error in 115ms

ActionView::Template::Error (application.css isn't precompiled):
    2: <html>
    3: <head>
    4:   <title>Max</title>
    5:   <%= stylesheet_link_tag    "application", :media => "all" %>
    6:   <%= javascript_include_tag "application" %>
    7:   <%= csrf_meta_tags %>
    8: </head>
  app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___1047297680506537616_22545860'
  app/controllers/users_controller.rb:7:in `index'

謝謝

嘗試跑步

bundle exec rake assets:precompile

從應用程序目錄中。 這應該可以修復該錯誤。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM