[17:44] I have an upstart script that needs to use rbenv to use ruby 2.3.0. But I can't seem to get it configured. [17:45] https://www.refheap.com/113456 [17:45] any ideas? [17:45] Ive really tried a lot. [17:58] what did you do to debug? how does it fail? [18:04] m1dnight_: ^^^ [18:05] First of all I have made sure that rbenv works properly when logged in. So testing the application (a node app) in my login schell works fine. [18:05] now i was testing if the env works when i run it without upstart [18:05] sec pls [18:07] so `export FOO="bar"` makes the value available in the script [18:07] (the script is run by a node.js application which is in turn run by the upstart) [18:07] this doesn't run like a login shell, so AFAIK $HOME won't be set to ~cdetroye etc. [18:09] hmm setting the home var breaks gulp [18:09] and it seems like rbenv needs to find stuff in $HOME ? [18:09] (I don't really use Ruby) [18:09] neither do I. Its for jekyll. [18:10] it doesn't work with whatever is the system-installed ruby? [18:11] also, if I understand correctly, it's gulp that runs the ruby script at some later time? [18:12] no. gulp runs the node.js app. [18:12] and from within node, i call a bash script which builds a jekyll website. [18:12] so upstart( gulp ( node (bash))) [18:12] if that conveys it properly [18:13] so you really need to set the rbenv environment in that bash script, I think [18:14] seems like you can set the environment with a local configuration file too [18:14] yeah I tried that but it doesnt get read [18:14] so my guess is that rbenv is not being run properly. [18:14] the quest is still ongoing [18:15] I'd say, if gulp runs de node.js app, then the bug is likely not in your upstart script [18:16] (even if I think sourcing .zshrc there doesn't seem like a good idea) [18:17] unless you have zsh as /bin/sh ? [18:25] stupid question: do you really need a node.js process to run that as a hook? [18:28] JanC: yeah I think so. [18:28] hmm [18:28] When I add $HOME it breaks gulp and node. [18:28] Is that normal? [18:28] and they are even isntalled in /usr/bin/ [18:44] is there another name for upstart? [18:44] to google a bit more [18:45] woohoo I fixed it [18:45] <3 [18:46] I think most of what you need would be in the cookbook