I have a meteor app that needs to periodically read a file located on the host's file system, outside of the app package. I am using node's fs
to accomplish this, and it works fine on my (macOS) development machine.
However, when I run mup deploy
to deploy it to my (Ubuntu 14) server, mup returns the following error after starting meteor:
Error: ENOENT: no such file or directory, open '/home/sam/data/all_data.json'
at Object.fs.openSync (fs.js:652:18)
at Object.fs.readFileSync (fs.js:553:33)
Does anyone know why this might be happening?
See Question&Answers more detail:os