Meteor to pickup file changes and automatically restart server after building.
Meteor detects file changes but throws error during build process.
the error after changing a file:
/root/.meteor/packages/templating/.126.96.36.199shieh++os+web.browser+web.cordova/plugin.compileTemplatesBatch.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:165 throw error; ^ Error: ENOENT: no such file or directory, open '/app/.meteor/local/build/programs/web.browser/app/.builder-tmp-file.688075' at Error (native)
- running OSX 10.10.5
Steps to reproduce the behavior
Create basic meteor app using the steps outlined here https://www.meteor.com/tutorials/blaze/creating-an-app
Use the following docker file to mount the app’s folder to the /app directory
FROM node:latest RUN curl https://install.meteor.com/ | sh RUN meteor update --release 188.8.131.52 VOLUME /app WORKDIR /app EXPOSE 3000 CMD [ "meteor" ]
Wait for meteor app to build and be accessible on port 3000
Modify a file and meteor will crash with the above error.
I’m not sure if this is a meteor related problem, or something to do with the way docker-for-mac is handling file syncing.