{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/528","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/528/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/528/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/528/events","html_url":"https://github.com/Unitech/pm2/issues/528","id":36125932,"number":528,"title":"PM2 restart \"services.json\" doesn't update environment variables","user":{"login":"gillesdemey","id":868844,"avatar_url":"https://avatars.githubusercontent.com/u/868844?v=3","gravatar_id":"","url":"https://api.github.com/users/gillesdemey","html_url":"https://github.com/gillesdemey","followers_url":"https://api.github.com/users/gillesdemey/followers","following_url":"https://api.github.com/users/gillesdemey/following{/other_user}","gists_url":"https://api.github.com/users/gillesdemey/gists{/gist_id}","starred_url":"https://api.github.com/users/gillesdemey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gillesdemey/subscriptions","organizations_url":"https://api.github.com/users/gillesdemey/orgs","repos_url":"https://api.github.com/users/gillesdemey/repos","events_url":"https://api.github.com/users/gillesdemey/events{/privacy}","received_events_url":"https://api.github.com/users/gillesdemey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Unitech/pm2/labels/Enhancement","name":"Enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/Unitech/pm2/labels/need%20pr","name":"need pr","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2014-06-19T22:51:33Z","updated_at":"2015-12-16T22:50:37Z","closed_at":"2014-08-22T19:30:51Z","body":"We're using a JSON file to define all our node services and their appropriate environment variables, script starting points etc.\r\n\r\nWhen adding an environment variable for one of our services and issuing ```pm2 restart services.json``` it doesn't actually add the environment variable to the process (tested using ```pm2 dump```).\r\n\r\nDeleting all the services and adding them again does work though but takes down our API's for a while."},"comment":{"url":"https://api.github.com/repos/Unitech/pm2/issues/comments/165278372","html_url":"https://github.com/Unitech/pm2/issues/528#issuecomment-165278372","issue_url":"https://api.github.com/repos/Unitech/pm2/issues/528","id":165278372,"user":{"login":"CJMcGregor","id":3117973,"avatar_url":"https://avatars.githubusercontent.com/u/3117973?v=3","gravatar_id":"","url":"https://api.github.com/users/CJMcGregor","html_url":"https://github.com/CJMcGregor","followers_url":"https://api.github.com/users/CJMcGregor/followers","following_url":"https://api.github.com/users/CJMcGregor/following{/other_user}","gists_url":"https://api.github.com/users/CJMcGregor/gists{/gist_id}","starred_url":"https://api.github.com/users/CJMcGregor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJMcGregor/subscriptions","organizations_url":"https://api.github.com/users/CJMcGregor/orgs","repos_url":"https://api.github.com/users/CJMcGregor/repos","events_url":"https://api.github.com/users/CJMcGregor/events{/privacy}","received_events_url":"https://api.github.com/users/CJMcGregor/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T22:50:37Z","updated_at":"2015-12-16T22:50:37Z","body":"+1 This is a much needed feature to have reload / gracefulReload  refresh env vars."}}