Magento 2 setup:staitic-content:deploy doesn't update cssMagento2: Re generate css file in pub/static...

Why doesn't "adolescent" take any articles in "listen to adolescent agonising"?

How spaceships determine each other's mass in space?

“I had a flat in the centre of town, but I didn’t like living there, so …”

Preparing as much as possible of a cake in advance

Are small insurances worth it

Error in TransformedField

Is being socially reclusive okay for a graduate student?

Naming Characters after Friends/Family

An Undercover Army

Quitting employee has privileged access to critical information

Where do you go through passport control when transiting through another Schengen airport on your way out of the Schengen area?

Named nets not connected in Eagle board design

How to make sure I'm assertive enough in contact with subordinates?

When to use the term transposed instead of modulation?

Remove object from array based on array of some property of that object

Is this nominative case or accusative case?

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

Can a Mimic (container form) actually hold loot?

Under what conditions would I NOT add my Proficiency Bonus to a Spell Attack Roll (or Saving Throw DC)?

I can't die. Who am I?

Does the US political system, in principle, allow for a no-party system?

Can you run a ground wire from stove directly to ground pole in the ground

Why do we call complex numbers “numbers” but we don’t consider 2 vectors numbers?

Why would the IRS ask for birth certificates or even audit a small tax return?



Magento 2 setup:staitic-content:deploy doesn't update css


Magento2: Re generate css file in pub/static folderMagento2: Disable CSS cachemagento2 - how do I show css updates in production mode?Magento 2 - no css after pub folder has been deletedMagetno 2 custom theme's css not deploying on production modeHow to customize css in pub/static folder. Automatically update old css in magento 2Magento 2 don't generate custom CSS fileMagento 2 custom theme setup:static-content:deploy en_GB on production mode does not work!When using Magento 2 the admin panel buttons are un-responsiveIs there any easiest way to make changes CSS & JS, and show changes without setup:static-content:deploy & without disabling static content generation?













0















I'm running Magento 2 in production mode.



I made some changes in my theme's css files.



I try to make the css change reflecting on the live site, by using following command.



php bin/magento setup:static-content:deploy en_AU en_US


I can't see the css files are updated in pub/static folder.



I have flushed cache php bin/magento cache:flush before and after static-content deploy.



Did i miss any steps?





Update,



By removing everything from the pub/static/frontend folder, then deploy static-content will make css changes reflecting on the site. But this will break site for a few moment. There's no way to implement css / js changes in a product mode without breaking the site?










share|improve this question
















bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Please try Flush Javascript/CSS cache from admin panel and then check. @xxx

    – Dhaduk Mitesh
    Mar 27 '18 at 10:52













  • @DhadukMitesh Before I deploy, I ran this command magento cache:flush. I think this will remove all cache?

    – Magento Learner
    Mar 27 '18 at 11:02






  • 1





    First you execute php bin/magento setup:static-content:deploy. after that Flush Javascript/CSS cache from admin panel.

    – Dhaduk Mitesh
    Mar 27 '18 at 11:04











  • Working or not? @xxx

    – Dhaduk Mitesh
    Mar 27 '18 at 11:22











  • I tried to flush js/css cache i admin after static-content:deploy. The css files still not updated in pub/static/frontend folder. But if I remove everything from pub/static/frontend folder then deploy, it will work. but as I mentioned in the question, removing everything from pub/static will break my site for a few moment, which I want to avoid.

    – Magento Learner
    Mar 27 '18 at 11:23
















0















I'm running Magento 2 in production mode.



I made some changes in my theme's css files.



I try to make the css change reflecting on the live site, by using following command.



php bin/magento setup:static-content:deploy en_AU en_US


I can't see the css files are updated in pub/static folder.



I have flushed cache php bin/magento cache:flush before and after static-content deploy.



Did i miss any steps?





Update,



By removing everything from the pub/static/frontend folder, then deploy static-content will make css changes reflecting on the site. But this will break site for a few moment. There's no way to implement css / js changes in a product mode without breaking the site?










share|improve this question
















bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Please try Flush Javascript/CSS cache from admin panel and then check. @xxx

    – Dhaduk Mitesh
    Mar 27 '18 at 10:52













  • @DhadukMitesh Before I deploy, I ran this command magento cache:flush. I think this will remove all cache?

    – Magento Learner
    Mar 27 '18 at 11:02






  • 1





    First you execute php bin/magento setup:static-content:deploy. after that Flush Javascript/CSS cache from admin panel.

    – Dhaduk Mitesh
    Mar 27 '18 at 11:04











  • Working or not? @xxx

    – Dhaduk Mitesh
    Mar 27 '18 at 11:22











  • I tried to flush js/css cache i admin after static-content:deploy. The css files still not updated in pub/static/frontend folder. But if I remove everything from pub/static/frontend folder then deploy, it will work. but as I mentioned in the question, removing everything from pub/static will break my site for a few moment, which I want to avoid.

    – Magento Learner
    Mar 27 '18 at 11:23














0












0








0








I'm running Magento 2 in production mode.



I made some changes in my theme's css files.



I try to make the css change reflecting on the live site, by using following command.



php bin/magento setup:static-content:deploy en_AU en_US


I can't see the css files are updated in pub/static folder.



I have flushed cache php bin/magento cache:flush before and after static-content deploy.



Did i miss any steps?





Update,



By removing everything from the pub/static/frontend folder, then deploy static-content will make css changes reflecting on the site. But this will break site for a few moment. There's no way to implement css / js changes in a product mode without breaking the site?










share|improve this question
















I'm running Magento 2 in production mode.



I made some changes in my theme's css files.



I try to make the css change reflecting on the live site, by using following command.



php bin/magento setup:static-content:deploy en_AU en_US


I can't see the css files are updated in pub/static folder.



I have flushed cache php bin/magento cache:flush before and after static-content deploy.



Did i miss any steps?





Update,



By removing everything from the pub/static/frontend folder, then deploy static-content will make css changes reflecting on the site. But this will break site for a few moment. There's no way to implement css / js changes in a product mode without breaking the site?







magento2 static-content-deploy






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 27 '18 at 10:48







Magento Learner

















asked Mar 27 '18 at 10:34









Magento LearnerMagento Learner

704930




704930





bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Please try Flush Javascript/CSS cache from admin panel and then check. @xxx

    – Dhaduk Mitesh
    Mar 27 '18 at 10:52













  • @DhadukMitesh Before I deploy, I ran this command magento cache:flush. I think this will remove all cache?

    – Magento Learner
    Mar 27 '18 at 11:02






  • 1





    First you execute php bin/magento setup:static-content:deploy. after that Flush Javascript/CSS cache from admin panel.

    – Dhaduk Mitesh
    Mar 27 '18 at 11:04











  • Working or not? @xxx

    – Dhaduk Mitesh
    Mar 27 '18 at 11:22











  • I tried to flush js/css cache i admin after static-content:deploy. The css files still not updated in pub/static/frontend folder. But if I remove everything from pub/static/frontend folder then deploy, it will work. but as I mentioned in the question, removing everything from pub/static will break my site for a few moment, which I want to avoid.

    – Magento Learner
    Mar 27 '18 at 11:23



















  • Please try Flush Javascript/CSS cache from admin panel and then check. @xxx

    – Dhaduk Mitesh
    Mar 27 '18 at 10:52













  • @DhadukMitesh Before I deploy, I ran this command magento cache:flush. I think this will remove all cache?

    – Magento Learner
    Mar 27 '18 at 11:02






  • 1





    First you execute php bin/magento setup:static-content:deploy. after that Flush Javascript/CSS cache from admin panel.

    – Dhaduk Mitesh
    Mar 27 '18 at 11:04











  • Working or not? @xxx

    – Dhaduk Mitesh
    Mar 27 '18 at 11:22











  • I tried to flush js/css cache i admin after static-content:deploy. The css files still not updated in pub/static/frontend folder. But if I remove everything from pub/static/frontend folder then deploy, it will work. but as I mentioned in the question, removing everything from pub/static will break my site for a few moment, which I want to avoid.

    – Magento Learner
    Mar 27 '18 at 11:23

















Please try Flush Javascript/CSS cache from admin panel and then check. @xxx

– Dhaduk Mitesh
Mar 27 '18 at 10:52







Please try Flush Javascript/CSS cache from admin panel and then check. @xxx

– Dhaduk Mitesh
Mar 27 '18 at 10:52















@DhadukMitesh Before I deploy, I ran this command magento cache:flush. I think this will remove all cache?

– Magento Learner
Mar 27 '18 at 11:02





@DhadukMitesh Before I deploy, I ran this command magento cache:flush. I think this will remove all cache?

– Magento Learner
Mar 27 '18 at 11:02




1




1





First you execute php bin/magento setup:static-content:deploy. after that Flush Javascript/CSS cache from admin panel.

– Dhaduk Mitesh
Mar 27 '18 at 11:04





First you execute php bin/magento setup:static-content:deploy. after that Flush Javascript/CSS cache from admin panel.

– Dhaduk Mitesh
Mar 27 '18 at 11:04













Working or not? @xxx

– Dhaduk Mitesh
Mar 27 '18 at 11:22





Working or not? @xxx

– Dhaduk Mitesh
Mar 27 '18 at 11:22













I tried to flush js/css cache i admin after static-content:deploy. The css files still not updated in pub/static/frontend folder. But if I remove everything from pub/static/frontend folder then deploy, it will work. but as I mentioned in the question, removing everything from pub/static will break my site for a few moment, which I want to avoid.

– Magento Learner
Mar 27 '18 at 11:23





I tried to flush js/css cache i admin after static-content:deploy. The css files still not updated in pub/static/frontend folder. But if I remove everything from pub/static/frontend folder then deploy, it will work. but as I mentioned in the question, removing everything from pub/static will break my site for a few moment, which I want to avoid.

– Magento Learner
Mar 27 '18 at 11:23










1 Answer
1






active

oldest

votes


















0














Run orders in the following order:



rm -Rf var/view_preprocessed/* var/*cache/* pub/static/frontend/*
php bin/magento setup:static-content:deploy
php bin/magento cache:flush --all


In production mode, you have a CSS and JS files cache, this cache is must remove after that is must refresh cache, screen.






share|improve this answer


























  • If I remove everything from pub/static/frontend/* then my site will broke right? I know I can then deploy static-content right away, but I cant afford to have the site down for 1 or more minutes.

    – Magento Learner
    Mar 27 '18 at 10:39













  • yes, after remove, site is possible to down, but you must remove everything from var/view_preprocessed/

    – St3phan
    Mar 27 '18 at 10:42













  • Run commands from answer

    – St3phan
    Mar 27 '18 at 10:42











  • thanks, but then we can come to a conclusion that when running Magento 2 in production mode, there's no way to get css / js changes on live site without breaking the site for a few moment?

    – Magento Learner
    Mar 27 '18 at 10:45













  • I updated my answer, try now.

    – St3phan
    Mar 27 '18 at 10:47











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f220004%2fmagento-2-setupstaitic-contentdeploy-doesnt-update-css%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Run orders in the following order:



rm -Rf var/view_preprocessed/* var/*cache/* pub/static/frontend/*
php bin/magento setup:static-content:deploy
php bin/magento cache:flush --all


In production mode, you have a CSS and JS files cache, this cache is must remove after that is must refresh cache, screen.






share|improve this answer


























  • If I remove everything from pub/static/frontend/* then my site will broke right? I know I can then deploy static-content right away, but I cant afford to have the site down for 1 or more minutes.

    – Magento Learner
    Mar 27 '18 at 10:39













  • yes, after remove, site is possible to down, but you must remove everything from var/view_preprocessed/

    – St3phan
    Mar 27 '18 at 10:42













  • Run commands from answer

    – St3phan
    Mar 27 '18 at 10:42











  • thanks, but then we can come to a conclusion that when running Magento 2 in production mode, there's no way to get css / js changes on live site without breaking the site for a few moment?

    – Magento Learner
    Mar 27 '18 at 10:45













  • I updated my answer, try now.

    – St3phan
    Mar 27 '18 at 10:47
















0














Run orders in the following order:



rm -Rf var/view_preprocessed/* var/*cache/* pub/static/frontend/*
php bin/magento setup:static-content:deploy
php bin/magento cache:flush --all


In production mode, you have a CSS and JS files cache, this cache is must remove after that is must refresh cache, screen.






share|improve this answer


























  • If I remove everything from pub/static/frontend/* then my site will broke right? I know I can then deploy static-content right away, but I cant afford to have the site down for 1 or more minutes.

    – Magento Learner
    Mar 27 '18 at 10:39













  • yes, after remove, site is possible to down, but you must remove everything from var/view_preprocessed/

    – St3phan
    Mar 27 '18 at 10:42













  • Run commands from answer

    – St3phan
    Mar 27 '18 at 10:42











  • thanks, but then we can come to a conclusion that when running Magento 2 in production mode, there's no way to get css / js changes on live site without breaking the site for a few moment?

    – Magento Learner
    Mar 27 '18 at 10:45













  • I updated my answer, try now.

    – St3phan
    Mar 27 '18 at 10:47














0












0








0







Run orders in the following order:



rm -Rf var/view_preprocessed/* var/*cache/* pub/static/frontend/*
php bin/magento setup:static-content:deploy
php bin/magento cache:flush --all


In production mode, you have a CSS and JS files cache, this cache is must remove after that is must refresh cache, screen.






share|improve this answer















Run orders in the following order:



rm -Rf var/view_preprocessed/* var/*cache/* pub/static/frontend/*
php bin/magento setup:static-content:deploy
php bin/magento cache:flush --all


In production mode, you have a CSS and JS files cache, this cache is must remove after that is must refresh cache, screen.







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 27 '18 at 10:47

























answered Mar 27 '18 at 10:38









St3phanSt3phan

1,9611136




1,9611136













  • If I remove everything from pub/static/frontend/* then my site will broke right? I know I can then deploy static-content right away, but I cant afford to have the site down for 1 or more minutes.

    – Magento Learner
    Mar 27 '18 at 10:39













  • yes, after remove, site is possible to down, but you must remove everything from var/view_preprocessed/

    – St3phan
    Mar 27 '18 at 10:42













  • Run commands from answer

    – St3phan
    Mar 27 '18 at 10:42











  • thanks, but then we can come to a conclusion that when running Magento 2 in production mode, there's no way to get css / js changes on live site without breaking the site for a few moment?

    – Magento Learner
    Mar 27 '18 at 10:45













  • I updated my answer, try now.

    – St3phan
    Mar 27 '18 at 10:47



















  • If I remove everything from pub/static/frontend/* then my site will broke right? I know I can then deploy static-content right away, but I cant afford to have the site down for 1 or more minutes.

    – Magento Learner
    Mar 27 '18 at 10:39













  • yes, after remove, site is possible to down, but you must remove everything from var/view_preprocessed/

    – St3phan
    Mar 27 '18 at 10:42













  • Run commands from answer

    – St3phan
    Mar 27 '18 at 10:42











  • thanks, but then we can come to a conclusion that when running Magento 2 in production mode, there's no way to get css / js changes on live site without breaking the site for a few moment?

    – Magento Learner
    Mar 27 '18 at 10:45













  • I updated my answer, try now.

    – St3phan
    Mar 27 '18 at 10:47

















If I remove everything from pub/static/frontend/* then my site will broke right? I know I can then deploy static-content right away, but I cant afford to have the site down for 1 or more minutes.

– Magento Learner
Mar 27 '18 at 10:39







If I remove everything from pub/static/frontend/* then my site will broke right? I know I can then deploy static-content right away, but I cant afford to have the site down for 1 or more minutes.

– Magento Learner
Mar 27 '18 at 10:39















yes, after remove, site is possible to down, but you must remove everything from var/view_preprocessed/

– St3phan
Mar 27 '18 at 10:42







yes, after remove, site is possible to down, but you must remove everything from var/view_preprocessed/

– St3phan
Mar 27 '18 at 10:42















Run commands from answer

– St3phan
Mar 27 '18 at 10:42





Run commands from answer

– St3phan
Mar 27 '18 at 10:42













thanks, but then we can come to a conclusion that when running Magento 2 in production mode, there's no way to get css / js changes on live site without breaking the site for a few moment?

– Magento Learner
Mar 27 '18 at 10:45







thanks, but then we can come to a conclusion that when running Magento 2 in production mode, there's no way to get css / js changes on live site without breaking the site for a few moment?

– Magento Learner
Mar 27 '18 at 10:45















I updated my answer, try now.

– St3phan
Mar 27 '18 at 10:47





I updated my answer, try now.

– St3phan
Mar 27 '18 at 10:47


















draft saved

draft discarded




















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f220004%2fmagento-2-setupstaitic-contentdeploy-doesnt-update-css%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

“%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

變成蝙蝠會怎樣? 參考資料 外部連結 导航菜单Thomas Nagel, "What is it like to be a...