Re: [Rails] empty rails log folder
2010/1/20 Vincent P <easebus@gmail.com>:
> The rails log folder is in my .gitignore file. That means the log
> folder is not in the repository. When I deploy my rails app to the
> staging server via git pull, the app refuses to work because it does
> not see a log folder. I have to manually create an empty log folder
> for it to put log files such as acts_as_ferret log inside. So now I
> have to commit an empty log folder to the git repository so that I
> don't have to manually create an empty log folder after a git pull on
> the staging server. Is there a better way?
Instead of using a top level .gitignore to ignore all files in the log
folder (so the folder does not appear in the repository) put a
.gitignore inside the log folder itself to ignore the log files. Then
commit log/.gitignore so the folder appears in the repository.
Colin
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home