Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update demo app: rebar deps, ensure inets is running, improve README #102

Merged
merged 1 commit into from Jan 21, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 10 additions & 2 deletions demo/README
Expand Up @@ -27,9 +27,17 @@ You probably want to do one of a couple of things at this point:
1. Start up the skeleton application:
$ ./start.sh

2. Change the basic application:
2. Test the basic application:
Visit http://localhost:8000/demo

3. Change the basic application:
edit src/webmachine_demo_resource.erl

3. Add some new resources:
4. Test the filesystem resource:
$ mkdir /tmp/fs
$ echo "Hello World." > /tmp/fs/demo.txt
Visit http://localhost:8000/fs/demo.txt

5. Add some new resources:
edit src/YOUR_NEW_RESOURCE.erl
edit priv/dispatch.conf
2 changes: 1 addition & 1 deletion demo/rebar.config
@@ -1,3 +1,3 @@
%%-*- mode: erlang -*-

{deps, [{webmachine, "1.7.*", {git, "git://github.com/basho/webmachine", "HEAD"}}]}.
{deps, [{webmachine, "1.9.*", {git, "git://github.com/basho/webmachine", "HEAD"}}]}.
1 change: 1 addition & 0 deletions demo/src/webmachine_demo.erl
Expand Up @@ -24,6 +24,7 @@ start_link() ->
%% @spec start() -> ok
%% @doc Start the webmachine_demo server.
start() ->
ensure_started(inets),
ensure_started(crypto),
ensure_started(mochiweb),
application:set_env(webmachine, webmachine_logger_module,
Expand Down