Skip to content
Browse files

fix README.md

  • Loading branch information...
1 parent 236530e commit 15e274233ec187e4a1428a0041f3985e4c154ec0 @liut committed Jun 18, 2013
Showing with 34 additions and 34 deletions.
  1. +29 −0 INSTALL.md
  2. +3 −33 README.md
  3. +2 −1 imsto/tool.py
View
29 INSTALL.md
@@ -37,3 +37,32 @@ Installation
* `git clone git://github.com/liut/imsto.git`
* `cd imsto`
* `less README.md`: read launch development
+
+
+Launch development
+------------------
+
+* mongodb:
+
+ mongo localhost/storage
+
+ db.createCollection("img.files",{autoIndexId:false});
+ db.img.files.ensureIndex({md5:1},{background:true, unique:true, dropDups:true});
+
+* nginx: add config/nginx/host.imsto.conf to nginx.conf
+
+ include /opt/imsto/config/nginx/host.imsto.conf;
+
+ vim /etc/hosts
+
+ 127.0.0.1 m.imsto.net man.imsto.net
+
+* uwsgi: there have two socket service
+
+ start image handle:
+ `sudo ./sbin/server_image.sh start`
+
+ start manage handle:
+ `./server_man.sh start`
+
+* open url http://man.imsto.net/
View
36 README.md
@@ -1,45 +1,15 @@
ImSto: a little image storage
-=======================================
+=============================
Requirements
------------
+------------
* MongoDB (GridFS)
* Python 2.7 + [pymongo][pymongo]
- * [ImageMagick][ImageMagick] or PIL
+ * [ImageMagick][ImageMagick]
* Nginx + [uWSGI][uWSGI]
-Launch development
-------------------
-
-* mongodb:
-
- mongo localhost/storage
-
- db.createCollection("img.files",{autoIndexId:false});
- db.img.files.ensureIndex({md5:1},{background:true, unique:true, dropDups:true});
-
-* nginx: add config/nginx/host.imsto.conf to nginx.conf
-
- include /opt/imsto/config/nginx/host.imsto.conf;
-
- vim /etc/hosts
-
- 127.0.0.1 m.imsto.net man.imsto.net
-
-* uwsgi: there have two socket service
-
- start image handle:
- `sudo ./sbin/server_image.sh start`
-
- start manage handle:
- `./server_man.sh start`
-
-* open url http://man.imsto.net/
-
-
-
TODO list
---------
View
3 imsto/tool.py
@@ -60,7 +60,8 @@ def store_file(filename):
list_dir(args.limit, args.start, prefix=args.prefix)
elif args.fetch:
imsto = load_imsto(section)
- print imsto.load('orig/{}'.format(args.fetch))
+ _file, _path = imsto.load('orig/{}'.format(args.fetch))
+ print _path
elif args.query:
imsto = load_imsto(section)
method = imsto.get_meta if args.query == 'meta' else imsto.exists

0 comments on commit 15e2742

Please sign in to comment.
Something went wrong with that request. Please try again.