Comments (5)
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.
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.
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.
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.
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)
- Go Get Install Fails with fatal error: 'CoreServices/CoreServices.h' HOT 2
- Feature request: .htpasswd support HOT 1
- How to log request body? HOT 1
- Allow built-in livereload while stopping on SIGHUP
- Windows 10 and devd are not very friends
- Watcher not Working in Proxy Mode on Windows HOT 1
- XDG support? HOT 1
- Markdown rendering HOT 3
- Compatiblity with future Go versions
- Can't serve a directory and watching a sub-directory
- `Origin` header doesn't seem to affect `Access-Control-Allow-Origin` response header HOT 2
- Be compatible with HTTP/2 HOT 1
- panic: runtime error: invalid memory address or nil pointer dereference HOT 2
- question: Is X-Forwarded-Proto set correctly? HOT 2
- linux 32 bit support HOT 2
- Out-of-date vendor dependencies are causing downstream builds to fail HOT 1
- Your connection is not private - Invalid cert for devd.io
- Feature request : log IP @ HOT 1
- [feature request] CLI option to add custom response headers HOT 1
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 devd.