Comments (7)
Can you confirm that the account you run nodemon under is the same and has the permissions as that one that you're uploading with FTP?
from nodemon.
I've set permissions to file 777
it still restarts each time
On 8/22/2011 3:43 PM, remy wrote:
Can you confirm that the account you run nodemon under is the same and has the permissions as that one that you're uploading with FTP?
from nodemon.
I'm having the same problem (node
v0.6.5). Editing files remotely via SFTP (but I don't think that matters), and whenever I change the first file nodemon
just keeps restarting the app. File permissions are correct.
I was able to fix it by changing nodemon
to write a single character 'a'
to the flag file instead of an empty string ''
. Reading node
's source code, this behavior seems to be correct (or maybe I don't understand how nodemon
is supposed to work). fs.writeSync()
contains the following line:
if (!length) return 0;
So if the write buffer length is zero, the file isn't touched at all.
Maybe you could consider using fs.utimesSync()
, introduced in node
v0.5.0, and falling back on exec('touch ...')
if that's not available?
from nodemon.
@MartinodF that totally makes sense - but I'd rather not use touch
to try to start thinking about adding decent windows support. I think the quickest and simplest fix is just to insert a character as you suggested. Watch this space (hopefully not too much longer - sorry!)
from nodemon.
I've now removed the dependancy on the .monitor file altogether in the latest release. Please could you update and test? Should be all good now (finally!)
from nodemon.
Works perfectly! Great work, thanks
from nodemon.
@MartinodF Pleased to hear :)
from nodemon.
Related Issues (20)
- nodemon called as a subprocess within a subprocess breaks stdin after SIGINT HOT 5
- Nodemon TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" HOT 4
- Nodemon the `punycode` module is deprecated in node js 21 HOT 2
- ts-node should not be default when `--import` flag is present HOT 6
- [Feature Request] Add a quit (repl) command HOT 7
- says server restarting but changes are not reflected on the terminal HOT 13
- - `nodemon -v`:
- Nodemon config file different than json HOT 4
- New Feature Request : adding a very simple way to handle node projects with ES Module HOT 2
- Nodemon Getting Stuck in the Restarting Phase HOT 24
- Force a full restart? HOT 7
- is there a way to delay before re-spawn / re-execution? otherwise CPU goes to 100% HOT 1
- Restart event calls start event as well when files change HOT 3
- Passing an array into ext config HOT 5
- nodemon is not restarting server automatically HOT 1
- Ability not to signal the whole subtree of a process HOT 13
- Restart not firing beyond deletion of directory under watch, when this directory structure is recreated (on Ubuntu 22.04) HOT 11
- Nodemon ignores `--ext` argument HOT 3
- not working with Node.js version 20.12.x HOT 12
- Unable to enable logs when using nodemon as a module HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodemon.