a month ago
I’m using some privates node modules for Node JS applications but I'm to get them installed correctly.
On my own server i use .gitconfig with a bash command and a github credential like:
[url "https:xxxx@github.com"] insteadOf = https://github.com
I haven't been able to overwrite the install step to to run the bash command before installing the node modules is any methods to do this?
1 Replies
a month ago
You can override the install command by setting the RAILPACK_INSTALL_COMMAND environment variable in your service settings, which lets you run a custom script that configures your .gitconfig before installing dependencies (e.g., git config --global url."https://TOKEN@github.com".insteadOf "https://github.com" && npm install). Alternatively, you can use a Dockerfile where you have full control over each build step. See our build configuration docs for more details.
Status changed to Awaiting User Response Railway • about 1 month ago
a month ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • about 1 month ago