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