Devd is a lightweight cross-platform HTTP server for Windows, Linux and Mac OS X that provides impressive functionality in a single executable file.
The application has no dependencies and you may run it from any location you drop it in. The program needs to be run from the command line as there is no interface to play around with.
Devd makes up for it by making it simple and straightforward to start a HTTP server on supported systems.
The command devd ./ -ol for instance starts the server in the root directory of the drive the program is executed on, opens a browser that displays the contents and reloads automatically when files change in the source directory.
A log is not kept but information are echoed on the command prompt so that you know what is going on this way. Logs are colorized for quick evaluation and may spawn multiple lines to make this even easier.
The list of commands is extensive, here are a couple of examples:
As you can see, there is more to the application than running a HTTP server on a computer system. You may use devd for instance to simulate a slow Internet connection or high latency to make sure your web application is up for the task.
Devd can be used as a reverse proxy, or light-weight virtual host. The command devd ./st api=http://localhost:8888 for instance serves a static site from devd.io (which resolves to 127.0.0.1) and reverse proxies a local app on api.devd.io.
You may also use the -x flag to exclude flies from the program's live-reload functionality.
A good starting point to get acquainted with devd is the project's Github page. There you find the source code, downloads, and information on several of the parameters and commands the program supports.
I like portable lightweight applications and devd fits that description perfectly. To make things easier, you could write small batch scripts to automate the process of starting the server on your system so that you don't have to write long commands each time you need to do so.Advertisement
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.