toastdotdev / toast

The best place to stack your JAM. Toast is a Jamstack framework
153 stars 13 forks source link

Allow binary location to be specified via an environment variable #25

Closed pantharshit00 closed 3 years ago

pantharshit00 commented 3 years ago

Right now there is no good way to provide a custom toast binary to the node wrapper so it makes it hard to debug toast during development for a contributor.

Adding this option also enables users of currently not support platforms like ARM, Nix and freebsd to compile toast from source and use via this env variable option.

We can call it TOAST_BINARY_LOCATION

jbolda commented 3 years ago

For the crosslink, noted this thought here as well: https://github.com/toastdotdev/toast/issues/9#issuecomment-705161653

It likely needs to branch off the code implanted in https://github.com/toastdotdev/toast/pull/15 as I had to soft fork binary-install.

ChristopherBiscardi commented 3 years ago

TOAST_BINARY can accept a path to the toast binary now when running, and TOAST_PREVENT_INSTALL allows the installation of the node package without pulling down a binary from the releases. #43 adds more instructions as well