Hi, I know there’s a way to do this but can’t find it.
IT wants the log directory changed from its default of “log/” to “/var/
log/rails”. Where can I do this?
Thanks,
Nate
Hi, I know there’s a way to do this but can’t find it.
IT wants the log directory changed from its default of “log/” to “/var/
log/rails”. Where can I do this?
Thanks,
Nate
I think that you can change this in your environment files, e.g.,
config/environments/production.rb, using config.log_path. See the
#initialize_logger method in initialize.rb.
But, I wonder whether this is a good idea if you run multiple rails apps
on
that machine. If you point more than one of them at /var/log/rails for
logging, all of their logs will run together. Maybe you intend to make
app-specific dirs under /var/log/rails?
Regards,
Craig
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs