Skip to main content
added 45 characters in body
Source Link
remklov
  • 331
  • 2
  • 11

I am working with Magento2 and have the problem, that my changes are only visible after a full php bin/magento setup:static-content:deploy en_US.

Prerequisites:

  • Magento 2.1.0
  • Linux VM with Apache / PHP7
  • Developer mode active
  • Caches inactive and flushed

I changed a html-file for a ko-template in a custom module, and tried to see the changes in frontend without a full static deploy. But it still displayed the old code. According to different people i asked and digged through blogs / docs i found out, i should remove these directories:

  • pub/static/frontend
  • var/di
  • var/view_preprocessed
  • var/generation

The .htaccess in pub/static was not removed. But after doing this, no JS / CSS files were available in browser (andand also were notnothing was generated in pub/static/frontend) except the _requirejs directory.

I ran out if ideas and working like this is really slow and annoying. According to other developers, it should work like this. What is the correct workflow here?

I apprechiate your help!

I am working with Magento2 and have the problem, that my changes are only visible after a full php bin/magento setup:static-content:deploy en_US.

Prerequisites:

  • Magento 2.1.0
  • Linux VM with Apache / PHP7
  • Developer mode active
  • Caches inactive and flushed

I changed a html-file for a ko-template in a custom module, and tried to see the changes in frontend without a full static deploy. But it still displayed the old code. According to different people i asked and digged through blogs / docs i found out, i should remove these directories:

  • pub/static/frontend
  • var/di
  • var/view_preprocessed
  • var/generation

But after doing this, no JS / CSS files were available in browser (and also were not generated in pub/static/frontend).

I ran out if ideas and working like this is really slow and annoying. According to other developers, it should work like this. What is the correct workflow here?

I apprechiate your help!

I am working with Magento2 and have the problem, that my changes are only visible after a full php bin/magento setup:static-content:deploy en_US.

Prerequisites:

  • Magento 2.1.0
  • Linux VM with Apache / PHP7
  • Developer mode active
  • Caches inactive and flushed

I changed a html-file for a ko-template in a custom module, and tried to see the changes in frontend without a full static deploy. But it still displayed the old code. According to different people i asked and digged through blogs / docs i found out, i should remove these directories:

  • pub/static/frontend
  • var/di
  • var/view_preprocessed
  • var/generation

The .htaccess in pub/static was not removed. But after doing this, no JS / CSS files were available in browser and also were nothing was generated in pub/static/frontend except the _requirejs directory.

I ran out if ideas and working like this is really slow and annoying. According to other developers, it should work like this. What is the correct workflow here?

I apprechiate your help!

Source Link
remklov
  • 331
  • 2
  • 11

Magento2 changes not deployed

I am working with Magento2 and have the problem, that my changes are only visible after a full php bin/magento setup:static-content:deploy en_US.

Prerequisites:

  • Magento 2.1.0
  • Linux VM with Apache / PHP7
  • Developer mode active
  • Caches inactive and flushed

I changed a html-file for a ko-template in a custom module, and tried to see the changes in frontend without a full static deploy. But it still displayed the old code. According to different people i asked and digged through blogs / docs i found out, i should remove these directories:

  • pub/static/frontend
  • var/di
  • var/view_preprocessed
  • var/generation

But after doing this, no JS / CSS files were available in browser (and also were not generated in pub/static/frontend).

I ran out if ideas and working like this is really slow and annoying. According to other developers, it should work like this. What is the correct workflow here?

I apprechiate your help!