{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/1222","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/1222/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/1222/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/1222/events","html_url":"https://github.com/strongloop/loopback/issues/1222","id":62677682,"number":1222,"title":"Deploy with \"slc build --pack\" using datasources.production.json","user":{"login":"makersu","id":7261851,"avatar_url":"https://avatars.githubusercontent.com/u/7261851?v=3","gravatar_id":"","url":"https://api.github.com/users/makersu","html_url":"https://github.com/makersu","followers_url":"https://api.github.com/users/makersu/followers","following_url":"https://api.github.com/users/makersu/following{/other_user}","gists_url":"https://api.github.com/users/makersu/gists{/gist_id}","starred_url":"https://api.github.com/users/makersu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersu/subscriptions","organizations_url":"https://api.github.com/users/makersu/orgs","repos_url":"https://api.github.com/users/makersu/repos","events_url":"https://api.github.com/users/makersu/events{/privacy}","received_events_url":"https://api.github.com/users/makersu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"superkhau","id":1617364,"avatar_url":"https://avatars.githubusercontent.com/u/1617364?v=3","gravatar_id":"","url":"https://api.github.com/users/superkhau","html_url":"https://github.com/superkhau","followers_url":"https://api.github.com/users/superkhau/followers","following_url":"https://api.github.com/users/superkhau/following{/other_user}","gists_url":"https://api.github.com/users/superkhau/gists{/gist_id}","starred_url":"https://api.github.com/users/superkhau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superkhau/subscriptions","organizations_url":"https://api.github.com/users/superkhau/orgs","repos_url":"https://api.github.com/users/superkhau/repos","events_url":"https://api.github.com/users/superkhau/events{/privacy}","received_events_url":"https://api.github.com/users/superkhau/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-03-18T12:08:21Z","updated_at":"2015-05-14T17:59:43Z","closed_at":null,"body":"When I \"export NODE_ENV=production\", then \"slc run\",it go with datasources.production.json.\r\nWhen I \"slc build --pack\", \r\nthen \"slc deploy http://localhost:7777 xxx-x.x.x.tgz\", it go with datasources.json.\r\nIs there something missing?\r\nThanks."},"comment":{"url":"https://api.github.com/repos/strongloop/loopback/issues/comments/102119198","html_url":"https://github.com/strongloop/loopback/issues/1222#issuecomment-102119198","issue_url":"https://api.github.com/repos/strongloop/loopback/issues/1222","id":102119198,"user":{"login":"superkhau","id":1617364,"avatar_url":"https://avatars.githubusercontent.com/u/1617364?v=3","gravatar_id":"","url":"https://api.github.com/users/superkhau","html_url":"https://github.com/superkhau","followers_url":"https://api.github.com/users/superkhau/followers","following_url":"https://api.github.com/users/superkhau/following{/other_user}","gists_url":"https://api.github.com/users/superkhau/gists{/gist_id}","starred_url":"https://api.github.com/users/superkhau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superkhau/subscriptions","organizations_url":"https://api.github.com/users/superkhau/orgs","repos_url":"https://api.github.com/users/superkhau/repos","events_url":"https://api.github.com/users/superkhau/events{/privacy}","received_events_url":"https://api.github.com/users/superkhau/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T17:59:43Z","updated_at":"2015-05-14T17:59:43Z","body":"@makersu Did you try @rmg's solution yet? ie)\r\n\r\n>You need to set NODE_ENV in the deployed environment: slc ctl -C http://localhost:7777/ env-set NODE_ENV=production"}}