Database path not resolved correctly in daemonized setup ruby 2.1.1p76
bterkuile opened this issue · 1 comments
bterkuile commented
In the railty.rb there is a line:
config.database File.expand_path @database_path
In my production environment inside a daemonized worker the database path resolves to:
/db/xapian_db/production
note the leading slash.
Replacing the line with:
config.database Rails.root.join(@database_path).to_s
solved it for me. This was not a problem in the past, so probably because of a ruby update of File.expand_path.
gernotkogler commented
Thanks for the hint, fixed it