Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Warning fix: Force the log/ directory to exist

When running 'rake', 'script/about', or any other command in fresh checkout
of Mephisto, Rails will display the following warning:

  Rails Error: Unable to access log file. Please ensure that
  /.../mephisto/log/development.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.

To fix this, the user must manually 'mkdir log'.  This problem occurs
because git doesn't allow empty directories to be checked into version
control, and because Rails 2.0 isn't smart enough to create the log/
directory when needed.

We can remove this file once Mephisto has been ported to Rails 2.2, which
knows how to create the log/ directory automatically.
  • Loading branch information...
commit 28ec6c45c78a1bef8213aa020402b584e364fc73 1 parent 8f41aa9
@emk emk authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  log/README
View
3  log/README
@@ -0,0 +1,3 @@
+This directory is used to store log files. This README file only exists so
+that git will create this directory automatically when making a checkout of
+Mephisto.
Please sign in to comment.
Something went wrong with that request. Please try again.