2

Running Magento 2.1

I am building a module with alert.js in the /view/frontend/web/ folder in my module: https://github.com/waynhall/frontend1/tree/master/Pulsestorm/FrontendTutorial1

However, after enabling the module and running magento setup:upgrade and magento setup:di:compile and reloading the homepage to generate the pub/static folder, there is no folder here as I would expect:

/var/www/magento.dev/public_html/pub/static/frontend/Magento/luma/en_US/Pulsestorm_FrontendTutorial1/ in order to serve the alert.js

What am I doing wrong?

  • Sorry. I meant hello.js, not alert.js. – Wayne Jul 31 '16 at 1:06
  • 1
    Did you try to run static content deploy command? – Khoa TruongDinh Jul 31 '16 at 1:47
  • Thanks Khoa, sudo bin/magento setup:static-content:deploy Now it's there. – Wayne Jul 31 '16 at 2:04
0

Run following command to generate pub/static directory

sudo php bin/magento setup:static-content:deploy 

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.