Mediamock Magento1模块在读取图像时禁用HDD文件访问。文件访问将路由到mediamock服务器的REST API
What is mediamock? Please read https://github.com/SchumacherFM/mediamock.
This module disables HDD file access when reading and generating images within Magento.
You can remove all media files from your development media folder and save disk space.
Only use for development or in staging environment!
modman clone https://github.com/SchumacherFM/mediamock-magento.git
on your development machine.
Download the mediamock binary for your operating system.
ssh into your production server then run this mediamock binary.
$ mediamock analyze -d path/to/media -o path/to/media.csv.gz
Mediamock will read the file structure and image sizes and writes it into a csv.gz file.
For help see: $ mediamock help analyze
.
Now on your local development machine. Download the mediamock binary
for your operating system. Then start the server:
$ mediamock -p icon server -i http://magento-prd-host.com/media.csv.gz --urlPrefix=media
For help see: $ mediamock help server
.
For detailed statistic about mediamock server internals you can visit
http://localhost:4711/
Tiny directory indexhttp://localhost:4711/debug/charts/
Garbage Collection and Memory Usage statshttp://localhost:4711/json
all files as a JSON streamhttp://localhost:4711/html
all files as a HTML tableConfigure URLs under System - Configuration - Web - Unsecure
andSystem - Configuration - Web - Secure
for all store views!
Alternatively:
UPDATE `core_config_data` SET `value` = 'http://127.0.0.1:4711/media/'
WHERE `path` LIKE '%media_url%' AND `value` like '%media%';
And voila your images will be generated on the fly!
This module will conflict with all modules which rewrites the following classes:
For example:
Report a bug using the issue tracker or send us a pull request.
Instead of forking I can add you as a Collaborator IF you really intend to develop on this module. Just ask :-)
For versioning have a look at Semantic Versioning 2.0.0
OSL - Open Software Licence 3.0