{"action":"created","issue":{"url":"https://api.github.com/repos/creationix/nvm/issues/745","labels_url":"https://api.github.com/repos/creationix/nvm/issues/745/labels{/name}","comments_url":"https://api.github.com/repos/creationix/nvm/issues/745/comments","events_url":"https://api.github.com/repos/creationix/nvm/issues/745/events","html_url":"https://github.com/creationix/nvm/issues/745","id":71674230,"number":745,"title":"How to use nvm for production services","user":{"login":"nheath","id":1778613,"avatar_url":"https://avatars.githubusercontent.com/u/1778613?v=3","gravatar_id":"","url":"https://api.github.com/users/nheath","html_url":"https://github.com/nheath","followers_url":"https://api.github.com/users/nheath/followers","following_url":"https://api.github.com/users/nheath/following{/other_user}","gists_url":"https://api.github.com/users/nheath/gists{/gist_id}","starred_url":"https://api.github.com/users/nheath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nheath/subscriptions","organizations_url":"https://api.github.com/users/nheath/orgs","repos_url":"https://api.github.com/users/nheath/repos","events_url":"https://api.github.com/users/nheath/events{/privacy}","received_events_url":"https://api.github.com/users/nheath/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-28T19:03:31Z","updated_at":"2015-05-28T15:31:26Z","closed_at":null,"body":"We would like to use nvm to run multiple applications on our qa and production services in multiple node versions. I had envisioned each project having an .nvmrc file and simply runnng \"nvm use\" as part of the service init script. However, since nvm is written as a function, and needs to be sourced into your login profile, this does not appear to be a workable option. Init scripts do not have a login shell or profile, so I am unable to get access to any of the NVM commands.\r\n\r\nIs there an alternate approach, am I missing something, or is NVM not recommended for running production services?"},"comment":{"url":"https://api.github.com/repos/creationix/nvm/issues/comments/106413365","html_url":"https://github.com/creationix/nvm/issues/745#issuecomment-106413365","issue_url":"https://api.github.com/repos/creationix/nvm/issues/745","id":106413365,"user":{"login":"xpepermint","id":174279,"avatar_url":"https://avatars.githubusercontent.com/u/174279?v=3","gravatar_id":"","url":"https://api.github.com/users/xpepermint","html_url":"https://github.com/xpepermint","followers_url":"https://api.github.com/users/xpepermint/followers","following_url":"https://api.github.com/users/xpepermint/following{/other_user}","gists_url":"https://api.github.com/users/xpepermint/gists{/gist_id}","starred_url":"https://api.github.com/users/xpepermint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpepermint/subscriptions","organizations_url":"https://api.github.com/users/xpepermint/orgs","repos_url":"https://api.github.com/users/xpepermint/repos","events_url":"https://api.github.com/users/xpepermint/events{/privacy}","received_events_url":"https://api.github.com/users/xpepermint/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T15:31:26Z","updated_at":"2015-05-28T15:31:26Z","body":"How about this: https://github.com/jpfluger/examples/blob/master/ubuntu-14.04/nvm-for-node-package-management.md"}}