0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00
cowboy/examples/static
Loïc Hoguin e4124de2c7 Switch to Ranch for connection handling
This is the first of many API incompatible changes.

You have been warned.
2012-08-27 11:50:35 +02:00
..
priv Add a simple Static File Server example 2012-07-14 20:24:47 +02:00
src Switch to Ranch for connection handling 2012-08-27 11:50:35 +02:00
README.md Add a simple Static File Server example 2012-07-14 20:24:47 +02:00
rebar.config Add a simple Static File Server example 2012-07-14 20:24:47 +02:00
start.sh Add a simple Static File Server example 2012-07-14 20:24:47 +02:00

Cowboy Static Files Server

To compile this example you need rebar in your PATH.

Type the following command:

$ rebar get-deps compile

You can then start the Erlang node with the following command:

./start.sh

Cowboy will serve all the files you put in the priv/ directory. You can replace the filename given in the example URL with the one of a file you added to this directory to receive that file.