1

I made a copy of a website for upgrade from 2.2.1 to 2.2.6, but I think there is some small issue, which I am not able to figure out.

The static contents in the pub static folder are not getting generated, only the requirejs-config.js

When I my deploying static content with -f the assets are generated, but for the same file being there in the website I am getting a 404.

The .htacess file is there in the static folder.

2
  • I think you need to check if the .htaccess file is present in the static folder or not. If not then copy the .htaccess file from static folder of any other magento2 installation. It should work. Commented Nov 19, 2018 at 7:26
  • I have already mentioned in my comment that .htaccess file is present.
    – Joshi
    Commented Nov 19, 2018 at 7:47

2 Answers 2

0
rm -rf var/generated
rm -rf pub/static

Then regenerate as you normally would

0
  1. change the deploy mode to developer. php bin/magento deploy:mode:set developer

  2. run php bin/magento setup:upgrade

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.