Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

If a Rails app exits during startup, explicitly tell people to read t…

…he web server's log file and not the Rails log file.
  • Loading branch information...
commit db775b0594384ad6eccad9449f1f92a43a691f8f 1 parent 5833b5d
@FooBarWidget FooBarWidget authored
View
5 lib/passenger/templates/app_exited_during_initialization.html.erb
@@ -4,8 +4,9 @@
The application has exited during startup (i.e. during the evaluation of
<tt>config/environment.rb</tt>). The error message may have been
- written to the web server's log file. Please check the web server's log file
- to find out why the application exited.
+ written to the web server's log file. Please check the <b>web server's</b>
+ log file (i.e. <em>not</em> the Rails log file) to find out why the application
+ exited.
<dl>
<dt>Application root:</dt>
View
3  misc/render_error_pages.rb
@@ -100,6 +100,9 @@ def start
e = StandardError.new("Some error message")
render_error_page(e, 'general_error.html',
'general_error')
+
+ e = StandardError.new("Some error message")
+ render_error_page(e, 'app_exited.html', 'app_exited_during_initialization')
end
start
Please sign in to comment.
Something went wrong with that request. Please try again.