mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fixed log file permissions to be 666 instead of 777 (so they're not executable) #471 [Lucas Carlson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
f3965af649
commit
62f0512e54
5 changed files with 7 additions and 5 deletions
|
@ -1,5 +1,7 @@
|
|||
*SVN*
|
||||
|
||||
* Fixed log file permissions to be 666 instead of 777 (so they're not executable) #471 [Lucas Carlson]
|
||||
|
||||
* Fixed that auto reloading would some times not work or would reload the models twice #475 [Tobias Luetke]
|
||||
|
||||
* Added rewrite rules to deal with caching to public/.htaccess
|
||||
|
|
|
@ -79,7 +79,7 @@ task :initialize_log_files do
|
|||
LOG_FILES.each do |log_file|
|
||||
log_path = File.join(log_dir, log_file)
|
||||
touch log_path
|
||||
chmod 0777, log_path
|
||||
chmod 0666, log_path
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<p><b>Before you move on</b>, verify that the following conditions have been met:</p>
|
||||
|
||||
<ol>
|
||||
<li>The log directory and the empty log files must be writable to the web server (<code>chmod -R 777 log</code>).
|
||||
<li>The log directory and the empty log files must be writable to the web server (<code>chmod -R 666 log/*</code>).
|
||||
<li>
|
||||
The shebang line in the public/dispatch* files must reference your Ruby installation. <br/>
|
||||
You might need to change it to <code>#!/usr/bin/env ruby</code> or point directly at the installation.
|
||||
|
@ -67,4 +67,4 @@
|
|||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -47,7 +47,7 @@ rescue StandardError
|
|||
RAILS_DEFAULT_LOGGER = Logger.new(STDERR)
|
||||
RAILS_DEFAULT_LOGGER.level = Logger::WARN
|
||||
RAILS_DEFAULT_LOGGER.warn(
|
||||
"Rails Error: Unable to access log file. Please ensure that log/#{RAILS_ENV}.log exists and is chmod 0777. " +
|
||||
"Rails Error: Unable to access log file. Please ensure that log/#{RAILS_ENV}.log exists and is chmod 0666. " +
|
||||
"The log level has been raised to WARN and the output directed to STDERR until the problem is fixed."
|
||||
)
|
||||
end
|
||||
|
|
|
@ -44,7 +44,7 @@ rescue StandardError
|
|||
RAILS_DEFAULT_LOGGER = Logger.new(STDERR)
|
||||
RAILS_DEFAULT_LOGGER.level = Logger::WARN
|
||||
RAILS_DEFAULT_LOGGER.warn(
|
||||
"Rails Error: Unable to access log file. Please ensure that log/#{RAILS_ENV}.log exists and is chmod 0777. " +
|
||||
"Rails Error: Unable to access log file. Please ensure that log/#{RAILS_ENV}.log exists and is chmod 0666. " +
|
||||
"The log level has been raised to WARN and the output directed to STDERR until the problem is fixed."
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue