Coder Social home page Coder Social logo

Comments (8)

sebastianfeldmann avatar sebastianfeldmann commented on August 30, 2024 1

With version 4.5.8 you can use the command option to define the custom path.

captainhook install --run-path=./vendor/bin

Or set it in the settings section of your configuration file.

{
 "settings": {
  "run-path": "./vendor/bin"
 }
}

Hope that helps :)

from captainhook.

shochdoerfer avatar shochdoerfer commented on August 30, 2024 1

Can confirm: Works - Thanks for the quick help!

from captainhook.

shochdoerfer avatar shochdoerfer commented on August 30, 2024

Setting "vendor-directory" in the configuration also had no effect on that. Not sure what this is supposed to be for though.

from captainhook.

sebastianfeldmann avatar sebastianfeldmann commented on August 30, 2024

Currently CaptainHook assumes, that your current working directory is you git root.
Since the git root is located in /var/www is uses ./html/vendor... to access the binary.

I will add a config setting to overwrite the path guessing behavior

from captainhook.

shochdoerfer avatar shochdoerfer commented on August 30, 2024

@sebastianfeldmann thx. Can't I fix this with setting "vendor-directory" then? I tried an absolute path and a relative path but that did not change anything in the bash script.

from captainhook.

shochdoerfer avatar shochdoerfer commented on August 30, 2024

Easy fix for now: Move the .git folder into a separate location so that the relative path lookup will fail. This will lead to having the absolute path in the bash script and things are working again.

from captainhook.

sebastianfeldmann avatar sebastianfeldmann commented on August 30, 2024

If that's possible for you that's a solution :)
As long as the vendor directory subsides inside the git directory the Cap'n will use a relative path.

New config option will be available in 5 - 10 minutes ;)

from captainhook.

sebastianfeldmann avatar sebastianfeldmann commented on August 30, 2024

I will close this for now, if the issue isn't fixed with the run-path option feel free to reopen this issue ;)

from captainhook.

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.