Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/
./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent
| <?php | |
| /* | |
| * This script deletes duplicate images and imagerows from the database of which the images are not present in the filesystem. | |
| * It also removes images that are exact copies of another image for the same product. | |
| * And lastly, it looks for images that are on the filesystem but not in the database (orphaned images). | |
| * | |
| * This script can most likely be optimized but since it'll probably only be run a few times, I can't be bothered. | |
| * | |
| * Place scripts in a folder named 'scripts' (or similar) in the Magento root. |
| server { listen 80; | |
| server_name example.com; | |
| access_log /var/log/example.com/nginx.access.log; | |
| error_log /var/log/example.com/nginx.error.log; | |
| root /var/www/apps/example.com/public; | |
| charset utf-8; | |
| location / { | |
| rewrite ^ https://$host$request_uri? permanent; | |
| } |
| //Allowing CORS (Cross-Origin Resource Sharing) requests from | |
| // grunt server, put this into Gruntfile.js | |
| grunt.initConfig({ | |
| connect: { | |
| livereload: { | |
| options: { | |
| port: 9000, | |
| hostname: 'localhost', | |
| middleware: function (connect) { | |
| return [ |