I am running mongrel-0.3.13.1. Have used lighty and fcgi in the past,
and I must say that apache-2.0.x proxying to mongrel is much nicer to
deal with! I am having this problem, however.<br>
<br>
If I am in root's homedirectory, and start mongrel with this command:<br>
<br>
---------<br>
<span style="font-weight: bold;">mongrel_rails start -a <a href="http://127.0.0.1">127.0.0.1</a> -e
production -c /home/www/rails/myapp -l log/mongrel.log --user mongrel
--group mongrel -p 8080 -d</span><br>
---------<br>
<br>
everybody is happy. Mongrel's happy. I'm happy.<br>
<br>
However, if I am in the same location and issue this command (when no mongrel is running, obviously):<br>
<br>
---------<br>
<span style="font-weight: bold;">mongrel_rails start -C /etc/mongrel/mongrel_myapp.conf</span><br>
---------<br>
<br>
I get this error:<br>
<br>
---------<br>
<span style="font-weight: bold;">!!! Path to log file not valid: log/mongrel.log</span><br>
---------<br>
<br>
Here are the contents of the YAML config file (which I generated from the command line at the top of this message with a -G):<br>
<br>
---------<br>
<br>
---<br>
:daemon: true<br>
:cwd: /home/www/rails/myapp<br>
:includes:<br>
- mongrel<br>
:log_file: log/mongrel.log<br>
:config_script:<br>
:pid_file: log/mongrel.pid<br>
:group: rails<br>
:num_processors: 1024<br>
:environment: production<br>
:timeout: 0<br>
:docroot: public<br>
:user: rails<br>
:host: <a href="http://127.0.0.1">127.0.0.1</a><br>
:mime_map:<br>
:debug: false<br>
:port: &quot;8080&quot;<br>
<br>
---------<br>
<br>
<br>
It is as though options on the command line get parsed before the log
file path gets validated, but options in the config file are parsed
*after* the log file path is validated. Even fully qualifying the path
to the log file in the config file fails to eliminate the above error.
Am I missing something here? Or is this a bug in config file parsing?<br>