Devd: a small, self-contained web daemon for developers
corte.si
corte.si
The issue with these systems is that they lie in between something like Python's SimpleHTTPServer and a complete frontend development tool like Grunt or Gulp. They're great for small projects, but have trouble scaling up.
Devd has a simple job: it just serves files and triggers livereload when files change, and is completely agnostic about the build process. That means it works very well as a complement to Gulp - in fact, this is one of my primary use cases for devd. My gulp setups are simpler now: I've ditched Connect and node livereload libraries, and instead gulp JUST renders files to disk. It's early days, but having two sharp tools each doing what they do best seems to work well.
I should add that I definitely don't think there's one "right way" to do this stuff. I love the fact that we're free to explore variations to see what works and what doesn't. The more things we try the merrier!
It serves files and does livereload as well. Can be used programatically or as a CLI: `reloadify -f static -p 8080`.
For instance, here's a devd command-line from the docs (https://github.com/cortesi/devd) that handles proxying local services, with a static directory overlaid. Gulp would be rendering assets into that static directory, the change would be noticed by devd, and liverload would be triggered.
devd -l \
-w ./src/ \
/=http://localhost:8888 \
/api/=http://localhost:8889 \
/static/=./assetsThe live-reload functionality is there as a development workflow tool, to automatically reload the page to see the results of the latest code change, rather than manually switching to the browser and hitting ⌘R/F5.
I'm pretty sure it's intended for quickly spinning up small projects, not fully-fleshed front end systems with package management, build tools etc.
I use node-static myself for quickly bootstrapping experimental front end projects
With devd, I like how you can quickly map a proxy and get live reloading out of the box.
Tidy.
The simple (multi-endpoint) reverse proxying is certainly a nice-to-have when developing as well.
In my experience I would take this listing as a grain of salt. Maybe that's what you get on a decent business connection, but a home or mobile connection is likely going to have a much higher latency. It also doesn't take into account where your servers are - latency from Europe to West US on a good connection is 200ms+.
[0] http://www.cisco.com/c/en/us/solutions/collateral/service-pr...
[0]: http://scoop.sh
"This isn't terribly surprising, since I wrote it to scratch my own idiosyncratic itch"
This is hacker news remember.
Technically OP should have prefixed with "Show HN:" which is what it is perhaps.
Not all "Show HN:" posts exhibit brilliance or originality or solve a problem or as in this case solve a problem for the OP for which there is already an outstanding solution (I guess originality), but the existing solution doesn't fit their use-case.
And you know as hackers (I still am at 48 yrs old) if there's an itch needing to be scratched why not show off a bit of code, it's one of the best things about HN, we learn so much from each other this way, either through (constructive) criticism or just looking at a nice bunch of code.
So, yes, hackers unite.
Of course, I could use nginx, but fiddling with configuration files on dev-systems is not so cool. Also even nginx is not lightweight enough to me.
This looks really very neat! I will try it soon.
Thank you!
Can customize the directory.