Giter VIP home page Giter VIP logo

Comments (9)

erikhansen avatar erikhansen commented on May 30, 2024

@giacmir Did you add the line suggested by the Terminal Notifier on OS X section of the readme? If so, you should remove the require 'capistrano/magento2/pending' line from your Capfile.

from capistrano-magento2.

giacmir avatar giacmir commented on May 30, 2024

I didn't add that line... the problem is that if I have that gem installed I have this output not only on capistrano deploy, but even when issuing other commands (like "vagrant up"). I have to uninstall the gem, the reinstall it every time I have to deploy something. (or use capistrano through docker)

from capistrano-magento2.

erikhansen avatar erikhansen commented on May 30, 2024

@giacmir Off the top of my head, I don't know what to tell you. Maybe @davidalger will have a suggestion for how to proceed, although it will likely be next week before he's able to respond.

from capistrano-magento2.

davidalger avatar davidalger commented on May 30, 2024

@giacmir I cannot reproduce this issue. When I attempt to run capistrano from within a CentOS vm I use for development, a warning shows up (shown in following example), but only if I explicitly include the terminal-notifier file via `require 'capistrano/magento2/notifier'

[vagrant@dev-web70]/sites/m2.cap/tools/cap% cap web70 deploy
...
14:26 deploy:log_revision
      01 echo "Branch master (at 3aee55cea802e487293b0c37636d041a438c6245) deployed as release 20160902215207 by vagrant" >> /sites/m2cap.demo/revisions.log
    ✔ 01 vagrant@dev-web70 0.142s
terminal-notifier is only supported on Mac OS X 10.8, or higher.%
[vagrant@dev-web70]/sites/m2.cap/tools/cap%

My gut tells me that something is messed up with rvm permissions or something, as the check for OS / environment by the terminal-notifier gem has been implemented for years, allowing it to merely display the above warning when the OS is wrong.

What does this command report back to you?

ruby -e 'puts RbConfig::CONFIG["host_os"]'

On my linux install it reports linux-gnu and on OS X reports darwin14.5.0 - the gem is checking this value to case the notice that it displays.

I'm looking at removing the dependency, and finding out what using it will look like if it's not listed in the gem spec, but it might still be worth checking into the permissions of your rvm setup if that's the underlying culprit. :)

from capistrano-magento2.

giacmir avatar giacmir commented on May 30, 2024

Thanks for your answer

ruby -e 'puts RbConfig::CONFIG["host_os"]'

reports linux-gnu

I tried to run rvm --fix-permissions and it did something... I will let you know if this solves the issue.

from capistrano-magento2.

giacmir avatar giacmir commented on May 30, 2024

Nothing to do, I tried both to fix permission in nvm and to upgrade to latest 2.1 ruby but still have screen garbage. Probably is some strange connection with zsh.

from capistrano-magento2.

giacmir avatar giacmir commented on May 30, 2024

Tried to submit this issue as a bug to the terminal-notifier repo. They closed saying that it is not supposed (obviously) to be used under linux.

julienXX/terminal-notifier#184

from capistrano-magento2.

davidalger avatar davidalger commented on May 30, 2024

@giacmir I have decided to remove the hard dependency and updated the README to reflect this. It will be published in the next version. Thanks for hanging in there!

from capistrano-magento2.

davidalger avatar davidalger commented on May 30, 2024

@giacmir This should be taken care of in release 0.6.0. Thank you for your patience!

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.