Giter VIP home page Giter VIP logo

Comments (5)

davidalger avatar davidalger commented on May 31, 2024

@giacmir I did not think of doing that since I only use it to deploy to stage and production sites (both of which I run with MAGE_MODE set to production).

Are those the only commands you'd like to see skipped? I'm thinking I could add a setting :magento_deploy_production setting which is true by default. This would allow you to disable those commands by setting the flag to false in either config/deploy.rb or config/deploy/<stage_name>.rb

from capistrano-magento2.

giacmir avatar giacmir commented on May 31, 2024

@davidalger Thanks for your answer. Actually I was thinking of something similar. Some kind of flag that indicates if we are deploying to a production (or production-like) environment or a development one.

In this second case I think that static_content_deploy and di_compile should be skipped and that setup:upgrade should run without the --keep-generated flag.

from capistrano-magento2.

giacmir avatar giacmir commented on May 31, 2024

Also I was thinking that in a production environment composer install should run with the --no-dev flag.

from capistrano-magento2.

davidalger avatar davidalger commented on May 31, 2024

I have heard there are a few issues with --no-dev breaking some things, so I haven't tried it yet for a production install. Have you tried doing that with any success?

from capistrano-magento2.

giacmir avatar giacmir commented on May 31, 2024

No, it was only a conjecture... and I should say, with a point of sadness, that I'm not surprised at all to hear that something used as it should breaks Magento 2... 😔

from capistrano-magento2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.