I have a RoR app that is working as expected when the server is started normally (rails s), but when I start the server as a daemon, I am getting an error when I run File.read (<filename>):
Errno::ENOENT (No such file or directory - <filename>
This file clearly exists because it works when not started as a daemon.
How should I fix this so that I can start the development server as a daemon?
I figured it out – In order to make the paths correct here, I have to do:
Then it works!