Giter VIP home page Giter VIP logo

Comments (8)

hectornguyen avatar hectornguyen commented on May 31, 2024

I'm interested in a workaround for this issue.

from capistrano-magento2.

erikhansen avatar erikhansen commented on May 31, 2024

@hectornguyen I assume you're wanting a workaround for the "Unable to load theme specified by key ******" issue, since you commented on the magento/magento2#2797 thread. I think the solution that most people have adopted (including myself) is to manually insert the new theme into the theme table. See this comment: magento/magento2#2797 (comment)

from capistrano-magento2.

hectornguyen avatar hectornguyen commented on May 31, 2024

@erikhansen Actually, I'm looking for a workaround for this issue. I do apologise for that silly question, because I didn't notice to your commit

"setup:static-content:deploy #{params} | stdbuf -o0 tr -d .; test ${PIPESTATUS[0]} -eq 0",

Big fan of Capistrano although I hate Ruby 👯‍♂️

from capistrano-magento2.

davidalger avatar davidalger commented on May 31, 2024

@erikhansen

Would you check on a few things?

  1. Can you determine which version (i.e. is it 2.1.0 or 2.1.1, etc) which introduced the error codes in the CLI tool?
  2. The work done in #35 for similar failure to catch error output; this was unfortunately also as a result of the exit code hiding behind the pipe. Are you able to verify that those errors also do in-fact produce an exit code in versions which issue them? If not, that's a core-bug, but I'd like to know as well as be able to not have the crazy string checking in versions which don't require it.

I've closed the corresponding PR in favor of resolving the exit code errors by using a mapping prefix in SSHKit. See commit d5c9810. I even verified that setting it this way is in fact isolated to just this command and won't affect subsequent commands.

If you could test this on the hash failing the deploy and confirm resolution, that would be great. To do that, checkout the issue-44 branch, rake install, then run the deploy without using bundler exec (so it uses what you just installs).

from capistrano-magento2.

erikhansen avatar erikhansen commented on May 31, 2024

@davidalger

  1. The error codes were added in 2.1.1
  2. Yes, I'll verify this.

I won't be able to get to this until early next week.

from capistrano-magento2.

erikhansen avatar erikhansen commented on May 31, 2024

@davidalger I just tested the issue-44 branch and can confirm that it works as expected.

The work done in #35 for similar failure to catch error output; this was unfortunately also as a result of the exit code hiding behind the pipe. Are you able to verify that those errors also do in-fact produce an exit code in versions which issue them?

^ To avoid doing unnecessary string checking in 2.1.1+, I added a version check and have issued a PR to your issue-44 branch. I tested this check and confirmed that deploying a 2.1.2 site with a "Compilation from source" compilation error resulted in halted deployment, as expected.

from capistrano-magento2.

davidalger avatar davidalger commented on May 31, 2024

@erikhansen Great, thanks for confirming. In the case of a version which issues the error code, the string check is already skipped since the error code results in an exception. I mostly wanted to confirm the version number for documentation and change log sake. Thanks!

I'll get this pushed up shortly.

from capistrano-magento2.

davidalger avatar davidalger commented on May 31, 2024

Resolved in v0.5.7

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.