0

I've just installed Magento 2 onto my production server under a development subdomain. The install appeared to have been successful but I've noticed there are no images or working javascript in both the frontend and the backend.

After inspecting the source code, I found that files being called in such as http://dev.website.com/pub/static/frontend/Magento/luma/en_GB/css/print.css don't actually exist. Any thoughts? I tried solutions on several stacks but haven't had any luck.

  • run the setup upgrade and static content deploy comment – Jeeva Chezhiyan Oct 10 '17 at 7:16
1

As Jeeva Chezhiyan suggests you can run

php bin/magento setup:static-content:deploy

however if this is development site, you may want to switch to developer mode and have the static contents be updated as you develop the site. To do that, you need to run:

php bin/magento deploy:mode:set developer

With this mode, you should not need to run the deploy command from above

  • You beat me to the answer ;) as an additional precaution, ensure that the permissions are set correctly for var and pub folders – NathanielR Oct 10 '17 at 7:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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