0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00
cowboy/examples/rest_hello_world/start.sh
2012-07-22 05:09:56 +02:00

6 lines
426 B
Bash
Executable file

#!/bin/sh
erl -pa ebin deps/*/ebin -s rest_hello_world \
-eval "io:format(\"Get HTML: curl -i http://localhost:8080~n\")." \
-eval "io:format(\"Get JSON: curl -i -H \\\"Accept: application/json\\\" http://localhost:8080~n\")." \
-eval "io:format(\"Get text: curl -i -H \\\"Accept: text/plain\\\" http://localhost:8080~n\")." \
-eval "io:format(\"Get a 406: curl -i -H \\\"Accept: text/css\\\" http://localhost:8080~n\")."