Deployment script taking too longmy table is not installing in Magento 2magento2 in production mode Nwdthemes Revslider not workingCannot install module in Magento 2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Magento2- Custom attribute customer not show in adminMagento 2.1.3: Overriding of vendor layout file with my custom layout file in Magento 2.1.3 is not working?Magento 2: Magento UI is not working properly. After deleting all productsWhen using Magento 2 the admin panel buttons are un-responsiveMagento 2: Image not uploading in grid "Attention: File was not uploaded”

What kind of footwear is suitable for walking in micro gravity environment?

Should a narrator ever describe things based on a characters view instead of fact?

Is there any common country to visit for uk and schengen visa?

Weird lines in Microsoft Word

Have any astronauts/cosmonauts died in space?

Output visual diagram of picture

PTIJ: Why do we make a Lulav holder?

Why I don't get the wanted width of tcbox?

Did Nintendo change its mind about 68000 SNES?

When should a starting writer get his own webpage?

Unable to get newly inserted Product's Id using After Plugin for Catalog Product save controller method

Why is participating in the European Parliamentary elections used as a threat?

Does the Shadow Magic sorcerer's Eyes of the Dark feature work on all Darkness spells or just his/her own?

How can a new country break out from a developed country without war?

Single word to change groups

Unfrosted light bulb

How old is Nick Fury?

Can "few" be used as a subject? If so, what is the rule?

How to determine the greatest d orbital splitting?

How to balance a monster modification (zombie)?

Does convergence of polynomials imply that of its coefficients?

Writing in a Christian voice

label a part of commutative diagram

How to test the sharpness of a knife?



Deployment script taking too long


my table is not installing in Magento 2magento2 in production mode Nwdthemes Revslider not workingCannot install module in Magento 2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Magento2- Custom attribute customer not show in adminMagento 2.1.3: Overriding of vendor layout file with my custom layout file in Magento 2.1.3 is not working?Magento 2: Magento UI is not working properly. After deleting all productsWhen using Magento 2 the admin panel buttons are un-responsiveMagento 2: Image not uploading in grid "Attention: File was not uploaded”













1















When I am creating new module I ran following commands for full deployment:



php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush


But it took so much time, 30 minutes approx



How can I make it more faster?










share|improve this question
























  • what is your server configuration and magento version?

    – Amit Bera
    Feb 9 at 16:42











  • Magento 2.2.7, I am using xamp, its on local environment

    – Atif Ameer
    Feb 9 at 16:44











  • On which mode you are working right now? Please check and do let me know magento deploy:mode:show

    – Shoaib Munir
    Feb 10 at 13:04











  • its on default mode

    – Atif Ameer
    Feb 10 at 16:08











  • Did you resolve your issue?

    – Shoaib Munir
    Feb 11 at 12:48















1















When I am creating new module I ran following commands for full deployment:



php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush


But it took so much time, 30 minutes approx



How can I make it more faster?










share|improve this question
























  • what is your server configuration and magento version?

    – Amit Bera
    Feb 9 at 16:42











  • Magento 2.2.7, I am using xamp, its on local environment

    – Atif Ameer
    Feb 9 at 16:44











  • On which mode you are working right now? Please check and do let me know magento deploy:mode:show

    – Shoaib Munir
    Feb 10 at 13:04











  • its on default mode

    – Atif Ameer
    Feb 10 at 16:08











  • Did you resolve your issue?

    – Shoaib Munir
    Feb 11 at 12:48













1












1








1








When I am creating new module I ran following commands for full deployment:



php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush


But it took so much time, 30 minutes approx



How can I make it more faster?










share|improve this question
















When I am creating new module I ran following commands for full deployment:



php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush


But it took so much time, 30 minutes approx



How can I make it more faster?







magento2 static-content-deploy slow-response






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 7 mins ago









Shoaib Munir

2,1081828




2,1081828










asked Feb 9 at 16:39









Atif AmeerAtif Ameer

6811




6811












  • what is your server configuration and magento version?

    – Amit Bera
    Feb 9 at 16:42











  • Magento 2.2.7, I am using xamp, its on local environment

    – Atif Ameer
    Feb 9 at 16:44











  • On which mode you are working right now? Please check and do let me know magento deploy:mode:show

    – Shoaib Munir
    Feb 10 at 13:04











  • its on default mode

    – Atif Ameer
    Feb 10 at 16:08











  • Did you resolve your issue?

    – Shoaib Munir
    Feb 11 at 12:48

















  • what is your server configuration and magento version?

    – Amit Bera
    Feb 9 at 16:42











  • Magento 2.2.7, I am using xamp, its on local environment

    – Atif Ameer
    Feb 9 at 16:44











  • On which mode you are working right now? Please check and do let me know magento deploy:mode:show

    – Shoaib Munir
    Feb 10 at 13:04











  • its on default mode

    – Atif Ameer
    Feb 10 at 16:08











  • Did you resolve your issue?

    – Shoaib Munir
    Feb 11 at 12:48
















what is your server configuration and magento version?

– Amit Bera
Feb 9 at 16:42





what is your server configuration and magento version?

– Amit Bera
Feb 9 at 16:42













Magento 2.2.7, I am using xamp, its on local environment

– Atif Ameer
Feb 9 at 16:44





Magento 2.2.7, I am using xamp, its on local environment

– Atif Ameer
Feb 9 at 16:44













On which mode you are working right now? Please check and do let me know magento deploy:mode:show

– Shoaib Munir
Feb 10 at 13:04





On which mode you are working right now? Please check and do let me know magento deploy:mode:show

– Shoaib Munir
Feb 10 at 13:04













its on default mode

– Atif Ameer
Feb 10 at 16:08





its on default mode

– Atif Ameer
Feb 10 at 16:08













Did you resolve your issue?

– Shoaib Munir
Feb 11 at 12:48





Did you resolve your issue?

– Shoaib Munir
Feb 11 at 12:48










1 Answer
1






active

oldest

votes


















1














The most time taken process in your listed commands are:



  1. Upgrade: php bin/magento setup:upgrade

  2. Di Compile: php bin/magento setup:di:compile

By doing 2 basic tasks you will speedup your these commands.



First: Change mode to production (if it is default or development)



php bin/magento deploy:mode:set production --skip-compilation


Note: If your project is at development phase, then you need development mode for error reporting and other stuff



Second: integrate Eleanorsoft module in your project.
Download Eleanorsoft



  • Copy Eleanorsoft folder to app/code/.

  • Run setup:upgrade.

  • Run setup:di:compile.

  • After compilation, you should see a folder var/di_cache/ with 4 (or more) files. This is the actual cache. From now your compilation process will use these cached lists instead of scanning the whole filesystem.

I personally integrated this module just now and noticed, di compile tool 19 mins at first, but after integrating this module it completed in just 8 mins



Reference of eleanorsoft: https://www.eleanorsoft.com/speed-up-magento-2-di-compilation-setupdicompile/






share|improve this answer























  • Thanks for the detailed answer, I will try this solution. Will let you know if it worked for me

    – Atif Ameer
    Feb 10 at 16:13











  • It worked. Much optimized now

    – Atif Ameer
    Feb 11 at 14:44










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%2f261105%2fdeployment-script-taking-too-long%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









1














The most time taken process in your listed commands are:



  1. Upgrade: php bin/magento setup:upgrade

  2. Di Compile: php bin/magento setup:di:compile

By doing 2 basic tasks you will speedup your these commands.



First: Change mode to production (if it is default or development)



php bin/magento deploy:mode:set production --skip-compilation


Note: If your project is at development phase, then you need development mode for error reporting and other stuff



Second: integrate Eleanorsoft module in your project.
Download Eleanorsoft



  • Copy Eleanorsoft folder to app/code/.

  • Run setup:upgrade.

  • Run setup:di:compile.

  • After compilation, you should see a folder var/di_cache/ with 4 (or more) files. This is the actual cache. From now your compilation process will use these cached lists instead of scanning the whole filesystem.

I personally integrated this module just now and noticed, di compile tool 19 mins at first, but after integrating this module it completed in just 8 mins



Reference of eleanorsoft: https://www.eleanorsoft.com/speed-up-magento-2-di-compilation-setupdicompile/






share|improve this answer























  • Thanks for the detailed answer, I will try this solution. Will let you know if it worked for me

    – Atif Ameer
    Feb 10 at 16:13











  • It worked. Much optimized now

    – Atif Ameer
    Feb 11 at 14:44















1














The most time taken process in your listed commands are:



  1. Upgrade: php bin/magento setup:upgrade

  2. Di Compile: php bin/magento setup:di:compile

By doing 2 basic tasks you will speedup your these commands.



First: Change mode to production (if it is default or development)



php bin/magento deploy:mode:set production --skip-compilation


Note: If your project is at development phase, then you need development mode for error reporting and other stuff



Second: integrate Eleanorsoft module in your project.
Download Eleanorsoft



  • Copy Eleanorsoft folder to app/code/.

  • Run setup:upgrade.

  • Run setup:di:compile.

  • After compilation, you should see a folder var/di_cache/ with 4 (or more) files. This is the actual cache. From now your compilation process will use these cached lists instead of scanning the whole filesystem.

I personally integrated this module just now and noticed, di compile tool 19 mins at first, but after integrating this module it completed in just 8 mins



Reference of eleanorsoft: https://www.eleanorsoft.com/speed-up-magento-2-di-compilation-setupdicompile/






share|improve this answer























  • Thanks for the detailed answer, I will try this solution. Will let you know if it worked for me

    – Atif Ameer
    Feb 10 at 16:13











  • It worked. Much optimized now

    – Atif Ameer
    Feb 11 at 14:44













1












1








1







The most time taken process in your listed commands are:



  1. Upgrade: php bin/magento setup:upgrade

  2. Di Compile: php bin/magento setup:di:compile

By doing 2 basic tasks you will speedup your these commands.



First: Change mode to production (if it is default or development)



php bin/magento deploy:mode:set production --skip-compilation


Note: If your project is at development phase, then you need development mode for error reporting and other stuff



Second: integrate Eleanorsoft module in your project.
Download Eleanorsoft



  • Copy Eleanorsoft folder to app/code/.

  • Run setup:upgrade.

  • Run setup:di:compile.

  • After compilation, you should see a folder var/di_cache/ with 4 (or more) files. This is the actual cache. From now your compilation process will use these cached lists instead of scanning the whole filesystem.

I personally integrated this module just now and noticed, di compile tool 19 mins at first, but after integrating this module it completed in just 8 mins



Reference of eleanorsoft: https://www.eleanorsoft.com/speed-up-magento-2-di-compilation-setupdicompile/






share|improve this answer













The most time taken process in your listed commands are:



  1. Upgrade: php bin/magento setup:upgrade

  2. Di Compile: php bin/magento setup:di:compile

By doing 2 basic tasks you will speedup your these commands.



First: Change mode to production (if it is default or development)



php bin/magento deploy:mode:set production --skip-compilation


Note: If your project is at development phase, then you need development mode for error reporting and other stuff



Second: integrate Eleanorsoft module in your project.
Download Eleanorsoft



  • Copy Eleanorsoft folder to app/code/.

  • Run setup:upgrade.

  • Run setup:di:compile.

  • After compilation, you should see a folder var/di_cache/ with 4 (or more) files. This is the actual cache. From now your compilation process will use these cached lists instead of scanning the whole filesystem.

I personally integrated this module just now and noticed, di compile tool 19 mins at first, but after integrating this module it completed in just 8 mins



Reference of eleanorsoft: https://www.eleanorsoft.com/speed-up-magento-2-di-compilation-setupdicompile/







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 10 at 16:12









Shoaib MunirShoaib Munir

2,1081828




2,1081828












  • Thanks for the detailed answer, I will try this solution. Will let you know if it worked for me

    – Atif Ameer
    Feb 10 at 16:13











  • It worked. Much optimized now

    – Atif Ameer
    Feb 11 at 14:44

















  • Thanks for the detailed answer, I will try this solution. Will let you know if it worked for me

    – Atif Ameer
    Feb 10 at 16:13











  • It worked. Much optimized now

    – Atif Ameer
    Feb 11 at 14:44
















Thanks for the detailed answer, I will try this solution. Will let you know if it worked for me

– Atif Ameer
Feb 10 at 16:13





Thanks for the detailed answer, I will try this solution. Will let you know if it worked for me

– Atif Ameer
Feb 10 at 16:13













It worked. Much optimized now

– Atif Ameer
Feb 11 at 14:44





It worked. Much optimized now

– Atif Ameer
Feb 11 at 14:44

















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%2f261105%2fdeployment-script-taking-too-long%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

Disable / Remove link to Product Items in Cart Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How can I limit products that can be bought / added to cart?Remove item from cartHide “Add to Cart” button if specific products are already in cart“Prettifying” the custom options in cart pageCreate link in cart sidebar to view all added items After limit reachedLink products together in checkout/cartHow to Get product from cart and add it againHide action-edit on cart page if simple productRemoving Cart items - ObserverRemove wishlist items when added to cart

Helsingin valtaus Sisällysluettelo Taustaa | Yleistä sotatoimista | Osapuolet | Taistelut Helsingin ympäristössä | Punaisten antautumissuunnitelma | Taistelujen kulku Helsingissä | Valtauksen jälkeen | Tappiot | Muistaminen | Kirjallisuutta | Lähteet | Aiheesta muualla | NavigointivalikkoTeoksen verkkoversioTeoksen verkkoversioGoogle BooksSisällissota Helsingissä päättyi tasan 95 vuotta sittenSaksalaisten ylivoima jyräsi punaisen HelsinginSuomalaiset kuvaavat sotien jälkiä kaupungeissa – katso kuvat ja tarinat tutuilta kulmiltaHelsingin valtaus 90 vuotta sittenSaksalaiset valtasivat HelsinginHyökkäys HelsinkiinHelsingin valtaus 12.–13.4. 1918Saksalaiset käyttivät ihmiskilpiä Helsingin valtauksessa 1918Teoksen verkkoversioTeoksen verkkoversioSaksalaiset hyökkäävät Etelä-SuomeenTaistelut LeppävaarassaSotilaat ja taistelutLeppävaara 1918 huhtikuussa. KapinatarinaHelsingin taistelut 1918Saksalaisten voitonparaati HelsingissäHelsingin valtausta juhlittiinSaksalaisten Helsinki vuonna 1918Helsingin taistelussa kaatuneet valkokaartilaisetHelsinkiin haudatut taisteluissa kaatuneet punaiset12.4.1918 Helsingin valtauksessa saksalaiset apujoukot vapauttavat kaupunginVapaussodan muistomerkkejä Helsingissä ja pääkaupunkiseudullaCrescendo / Vuoden 1918 Kansalaissodan uhrien muistomerkkim

Adjektiivitarina Tarinan tekeminen | Esimerkki: ennen | Esimerkki: jälkeen | Navigointivalikko