Simple static file server utility
Want to see pretty graphs? Log in now!
npm install marmalade
|2||downloads in the last week|
|4||downloads in the last month|
|Last Published By|
|Version||0.1.0 last updated 11 months ago|
|Keywords||static, utility, server|
Marmalade is a simple static file server utility. Marmalade is also a sweet breakfast or desert food commonly served on toast.
> npm install -g marmalade
Then in the root directory of your project (or the files you want to serve):
You'll get something like this:
> marmalade Serving files in ~/my-website/ Kill the server with 'marmalade kill' http://localhost:3000 >
Marmalade will detatch itself from the shell, so you don't have to worry about keeping that xterm window open. By default, only one instance of marmalade will run at a time, so starting a new server will close the previously started one.
The coolest feature of marmalade is that it will look for a Makefile (or Gruntfile) in the root directory and will run it with each request for the target file. This way you don't have to start 'watch make' in a background process whenever you start working on your project. If
make fails, marmalade will return the failure text rather than the requested file.
marmalade [option] [hostname] [port] marmalade kill [all] -s, --stay don't detatch from the shell -e, --exec custom command to execute with each request -m don't close existing intances of marmalade