# uwsgi params
port=8000
-processes=4
-threads=4
+processes=32
+threads=2
autoreload=3
# stating apps
python $manage collectstatic --noinput
python $manage telemeta-create-admin-user
python $manage telemeta-create-boilerplate
-python $manage update_index
+python $manage update_index --workers $processes
# static files auto update
watchmedo shell-command --patterns="*.js;*.css" --recursive \
media:
image: debian:wheezy
volumes:
- - ./media/:/opt/media
+ - /home/parisson/apps/DevBox/home/sandbox/media/:/opt/media
- ./static/:/opt/static
command: "true"
- media
command: /bin/sh deploy/start_app.sh
ports:
- - "9000:9000"
+ - "9001:9000"
expose:
- "8000"
links:
nginx:
image: nginx
ports:
- - "8000:80"
+ - "8001:80"
volumes:
- ./app/deploy/nginx-app.conf:/etc/nginx/conf.d/default.conf
- ./log/:/var/log/nginx
list.append(file)
return list
+ def add_file(self, file):
+ self.files.append(file)
+
+
def exists(self, file):
- if not file in self.files:
- self.files = self.get_files()
+ #if not file in self.files:
+ # self.files = self.get_files()
return file in self.files
def delete_item_data(self, public_id):
-Subproject commit 91973b13f9dc9405052727c0c525d342dee15562
+Subproject commit 4534a3d47e7909554637e87a637b1959db277941
-Subproject commit f8324093174d077b674ac2c52eb0db6eaf815ab5
+Subproject commit 771dfcc58e26f43a507c3bc48fcb5ddde55ca0b1
f = open(path, 'w')
graph.render(output=path)
f.close()
-
+ self.cache_data.add_file(image_file)
+
response = StreamingHttpResponse(self.cache_data.read_stream_bin(image_file), content_type=mime_type)
return response