0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00
cowboy/examples/static
2012-08-27 13:53:27 +02:00
..
priv Add a simple Static File Server example 2012-07-14 20:24:47 +02:00
src Rename cowboy_http_static to cowboy_static 2012-08-27 13:53:27 +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.