Skip to content

Commit

Permalink
Update README to reflect latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yannk committed Oct 21, 2011
1 parent d44d212 commit 0ae106a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ Rationale: mogilefs client implementation is a bit complicated (requires
handling of propriatary mogile network protocol, correct management of
data to be transfered etc.).

This is based on Dancer (perldancer.org)

Installation instructions:
--------------------------

Expand All @@ -15,18 +13,20 @@ $ cpanm MogileFS-REST
Configuration Instructions:
---------------------------

servers:
- host1:7001
- host2:7001
class: yourclass # as declared on mogile
domain: yourdomain
You can either use the provided app.psgi using ENV variable to configure it,
or write your own app.psgi.

ENV variables are:
- MOGILEFS_REST_SERVERS comma separated list of trackers
- MOGILEFS_REST_DEFAULT_CLASS default mogile class to use if none specified in the req.
- MOGILEFS_REST_LARGEFILE: use largefile support of mogile client. default to true.

Usage Instructions:
-------------------

$ perl app.psgi
$ MOGILEFS_REST_SERVERS=localhost:7001 plackup -Ilib -a app.psgi
# replace README with anyfile
$ curl -i -X PUT --data-binary @README http://localhost:3000/testing/key
$ curl -i -X GET http://localhost:3000/testing/key
$ curl -i -X HEAD http://localhost:3000/testing/key
$ curl -i -X DELETE http://localhost:3000/testing/key
$ curl -i -X PUT --data-binary @README http://localhost:5000/testing/key
$ curl -i -X GET http://localhost:5000/testing/key
$ curl -i -X HEAD http://localhost:5000/testing/key
$ curl -i -X DELETE http://localhost:5000/testing/key

0 comments on commit 0ae106a

Please sign in to comment.