स्थिति: मैं Magento 2 के कुछ मुफ्त परीक्षण चला रहा हूं और VPS पर सीमित HD स्थान है। इस कारण से एचडी स्पेस में कटौती करने के लिए मैं डिफ़ॉल्ट या प्रोडक्शन मोड में फाइलों को मैगेंटो सिमलिंक करना चाहता हूं। मैंने देखा है कि एक डिफ़ॉल्ट Magento 2 स्थापित 420mb के बारे में एक बार साइट पहले चलाता है यह 770mb के आसपास चला जाता है, तो इसमें से 350mb फ़ाइलों की प्रतिलिपि बनाई जाती है।
मैंने संशोधित किया है: एप्लिकेशन / etc / di.xml लाइन:
<item name="default" xsi:type="object">Magento\Framework\App\View\Asset\MaterializationStrategy\Copy</item>
सेवा
<item name="default" xsi:type="object">Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink</item>
यह ठीक काम करता है और साइट डिफ़ॉल्ट मोड में होने पर भी ठीक से सिम्लिंक बनाएगी। हालाँकि मुद्दा यह है कि css नहीं बना है या js-translation.json उन फ़ाइलों को बनाता है जिन्हें इसे बनाना चाहिए लेकिन वे नहीं हैं:
/pub/static/version1488209436/frontend/Magento/luma/en_US/css/styles-m.css
/pub/static/version1488209436/frontend/Magento/luma/en_US/css/styles-l.css
/pub/static/version1488209436/frontend/Magento/luma/en_US/css/print.css
/pub/static/version1488209436/frontend/Magento/luma/en_US/js-translation.json
तो सवाल यह है: मैं डिफ़ॉल्ट या प्रोडक्शन मोड में और सिम्लिंक का उपयोग करते समय मैगेंटो को भी इन फ़ाइलों को कैसे बनाते हैं?