Making Binaries Global

Surprised no one made a tutorial about this.

  1. Make a folder called bin in the root of your project
  2. Move your binaries to the bin folder. You did it. Now you can execute binaries globally.

Works with node.js

and c!

I found this out while looking at process.env.PATH, which is

/app/bin:/app/.local/bin:/app/node_modules/.bin:/opt/rust/cargo/bin:/opt/swift/usr/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/nvm/versions/node/v12/bin

The first path it scans for is /app/bin