Giter Site home page Giter Site logo

Comments (5)

polm avatar polm commented on May 24, 2024

Fiddling around more found something strange. The above command doesn't work, but this does:

cd ~/site/
devd -a -l . -p 8000

It seems to consistently work if the path is . but not if it's a directory. When it doesn't work, it also uses 100% CPU.

from devd.

wader avatar wader commented on May 24, 2024

Maybe run with strace could help see what is going on strace -f devd .... Look for bind failure, going thru lots of files etc

from devd.

polm avatar polm commented on May 24, 2024

Ah, yeah, it's going through tons of files,

If the directory structure is like this:

/home/person/site

Suppose cwd is /home/person and command is devd -l ./site. I would expect it to only access files in site but it seems to be checking all the files in /home/person.

Is that correct behavior? It seems wrong to me...

from devd.

wader avatar wader commented on May 24, 2024

Did some digging. I suspect that #95 caused devd to always add a watch for the current working directory, the ** include pattern i think will make moddatch.Watch add it as base dir.

If you are able to build devd yourself you could try to remove the "***" part and see if it behaves better.

@cortesi Could this be the case? as i understand in the end devd will add recursive watches for all base dirs? will that case lots of file system traversal?

from devd.

polm avatar polm commented on May 24, 2024

Sorry, I'm not familiar enough with go to build devd. (I was able to install go and run go build but it produced no bianries...?)

from devd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.