{"action":"created","issue":{"url":"https://api.github.com/repos/aerospike/aerospike-client-nodejs/issues/92","repository_url":"https://api.github.com/repos/aerospike/aerospike-client-nodejs","labels_url":"https://api.github.com/repos/aerospike/aerospike-client-nodejs/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/aerospike/aerospike-client-nodejs/issues/92/comments","events_url":"https://api.github.com/repos/aerospike/aerospike-client-nodejs/issues/92/events","html_url":"https://github.com/aerospike/aerospike-client-nodejs/issues/92","id":107663535,"number":92,"title":"Please include the C client in this package instead of downloading it on every rebuild","user":{"login":"revington","id":91995,"avatar_url":"https://avatars.githubusercontent.com/u/91995?v=3","gravatar_id":"","url":"https://api.github.com/users/revington","html_url":"https://github.com/revington","followers_url":"https://api.github.com/users/revington/followers","following_url":"https://api.github.com/users/revington/following{/other_user}","gists_url":"https://api.github.com/users/revington/gists{/gist_id}","starred_url":"https://api.github.com/users/revington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revington/subscriptions","organizations_url":"https://api.github.com/users/revington/orgs","repos_url":"https://api.github.com/users/revington/repos","events_url":"https://api.github.com/users/revington/events{/privacy}","received_events_url":"https://api.github.com/users/revington/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-22T08:02:38Z","updated_at":"2016-05-12T16:19:59Z","closed_at":null,"body":"Otherwise you are forcing me to download this package on every deploy. If I can not download the package I can not deploy :(\r\nFor production environmensts you usually do: \r\n```\r\n$ npm install --ignore-scripts\r\n$ git add node_modules\r\n$ git commit -m 'deps'\r\n```\r\nThen in production just build your stuff. No downloads!\r\n```\r\n$ npm rebuild\r\n```\r\nWith this module that can not be done because on `npm rebuild` it downloads the C client from aerospike. **Therefore, if the aerospike site is down I can not deploy.**\r\n\r\nhttp://www.letscodejavascript.com/v3/blog/2014/03/the_npm_debacle\r\n\r\nI discovered that becasue today my travis test are failing due a connectivity error with aeropspike site.\r\n\r\n```\r\n$ wget -O aerospike-server.tgz http://aerospike.com/download/server/latest/artifact/tgz\r\n--2015-09-22 07:25:07--  http://aerospike.com/download/server/latest/artifact/tgz\r\nResolving aerospike.com (aerospike.com)... 184.168.221.29\r\nConnecting to aerospike.com (aerospike.com)|184.168.221.29|:80... failed: Connection timed out.\r\nRetrying.\r\n--2015-09-22 07:26:11--  (try: 2)  http://aerospike.com/download/server/latest/artifact/tgz\r\nConnecting to aerospike.com (aerospike.com)|184.168.221.29|:80... failed: Connection timed out.\r\nRetrying.\r\n--2015-09-22 07:27:16--  (try: 3)  http://aerospike.com/download/server/latest/artifact/tgz\r\nConnecting to aerospike.com (aerospike.com)|184.168.221.29|:80... failed: Connection timed out.\r\nRetrying.\r\n--2015-09-22 07:28:22--  (try: 4)  http://aerospike.com/download/server/latest/artifact/tgz\r\nConnecting to aerospike.com (aerospike.com)|184.168.221.29|:80... failed: Connection timed out.\r\nRetrying.\r\n--2015-09-22 07:29:29--  (try: 5)  http://aerospike.com/download/server/latest/artifact/tgz\r\nConnecting to aerospike.com (aerospike.com)|184.168.221.29|:80... failed: Connection timed out.\r\nRetrying.\r\n--2015-09-22 07:30:37--  (try: 6)  http://aerospike.com/download/server/latest/artifact/tgz\r\nConnecting to aerospike.com (aerospike.com)|184.168.221.29|:80... failed: Connection timed out.\r\nRetrying.\r\n--2015-09-22 07:31:46--  (try: 7)  http://aerospike.com/download/server/latest/artifact/tgz\r\nConnecting to aerospike.com (aerospike.com)|184.168.221.29|:80... failed: Connection timed out.\r\nRetrying.\r\n--2015-09-22 07:32:56--  (try: 8)  http://aerospike.com/download/server/latest/artifact/tgz\r\nConnecting to aerospike.com (aerospike.com)|184.168.221.29|:80... failed: Connection timed out.\r\nRetrying.\r\n--2015-09-22 07:34:07--  (try: 9)  http://aerospike.com/download/server/latest/artifact/tgz\r\nConnecting to aerospike.com (aerospike.com)|184.168.221.29|:80... failed: Connection timed out.\r\nRetrying.\r\n--2015-09-22 07:35:19--  (try:10)  http://aerospike.com/download/server/latest/artifact/tgz\r\nConnecting to aerospike.com (aerospike.com)|184.168.221.29|:80... failed: Connection timed out.\r\nRetrying.\r\n--2015-09-22 07:36:32--  (try:11)  http://aerospike.com/download/server/latest/artifact/tgz\r\nConnecting to aerospike.com (aerospike.com)|184.168.221.29|:80... failed: Connection timed out.\r\nRetrying.\r\n--2015-09-22 07:37:45--  (try:12)  http://aerospike.com/download/server/latest/artifact/tgz\r\nConnecting to aerospike.com (aerospike.com)|184.168.221.29|:80... failed: Connection timed out.\r\nRetrying.\r\n--2015-09-22 07:38:58--  (try:13)  http://aerospike.com/download/server/latest/artifact/tgz\r\nConnecting to aerospike.com (aerospike.com)|184.168.221.29|:80... \r\n```"},"comment":{"url":"https://api.github.com/repos/aerospike/aerospike-client-nodejs/issues/comments/218809162","html_url":"https://github.com/aerospike/aerospike-client-nodejs/issues/92#issuecomment-218809162","issue_url":"https://api.github.com/repos/aerospike/aerospike-client-nodejs/issues/92","id":218809162,"user":{"login":"revington","id":91995,"avatar_url":"https://avatars.githubusercontent.com/u/91995?v=3","gravatar_id":"","url":"https://api.github.com/users/revington","html_url":"https://github.com/revington","followers_url":"https://api.github.com/users/revington/followers","following_url":"https://api.github.com/users/revington/following{/other_user}","gists_url":"https://api.github.com/users/revington/gists{/gist_id}","starred_url":"https://api.github.com/users/revington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revington/subscriptions","organizations_url":"https://api.github.com/users/revington/orgs","repos_url":"https://api.github.com/users/revington/repos","events_url":"https://api.github.com/users/revington/events{/privacy}","received_events_url":"https://api.github.com/users/revington/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T16:19:58Z","updated_at":"2016-05-12T16:19:58Z","body":"I bundle apps by:\n$ rm -rf node_modules\n$ npm install --production --ignore-scripts\n$ git add node_modules\n...\nIn the production machine i run\n$ npm rebuild\n\nThe problem with the aerospike module is that it should decide which c\nclient to download at \"rebuild time\".\n\nMy feeling is that the best practice will be to create\naerospike-client-{windows,Linux..} modules. So you install aerospike client\nwith:\n\n$ npm i --save aerospike aerospike-client-X\n\nThe former installs this module, the later installs the client.\n\nI'm sorry for a late reply, I'm on holidays and no computer so I'm\nanswering with my phone which (due to fat fingers and lack of ability) is a\npain in the ***\nEl 12 may. 2016 5:26 p. m., \"Jan Hecking\" <notifications@github.com>\nescribió:\n\n> @ApsOps <https://github.com/ApsOps>, I was referring to @revington\n> <https://github.com/revington>'s initial report in how he is deploying\n> his apps. It was wrong to assume that you are following the same model.\n>\n> Another idea I have been playing with is to package up the binaries as\n> separate npm package - one per platform. But I still need to figure out a\n> few details to see if this is even a viable option. Managing the package\n> dependencies would be a problem for one. But I could always fall back to\n> fetching the binaries at install time if the right binary package is not\n> installed.\n>\n> But I'm open for other ideas as well.\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/aerospike/aerospike-client-nodejs/issues/92#issuecomment-218792575>\n>\n"}}