{"action":"created","comment":{"url":"https://api.github.com/repos/marklogic/slush-marklogic-node/pulls/comments/67848829","id":67848829,"diff_hunk":"@@ -231,6 +231,91 @@ gulp.task('init-local', function() {\n });\n \n /**\n+ * Creates a sample process.json\n+ */\n+gulp.task('init-process', function() {\n+  //copy from slushfile - with modifications to use config instead\n+  log('Creating process.json sample document with values drawn from gulp.config.js');\n+  try {\n+    var configJSON = pm2JSON();\n+\n+    var configString = JSON.stringify(configJSON, null, 2) + '\\n';\n+    fs.writeFileSync('process.json', configString, {\n+      encoding: 'utf8'\n+    });\n+  } catch (e) {\n+    console.log('failed to write process.json: ' + e.message);\n+  }\n+});\n+\n+/**\n+ * Creates a sample ecosystem.json\n+ */\n+gulp.task('init-ecosystem', function() {\n+  log('Creating ecosystem.json sample document with values drawn from gulp.config.js');\n+  try {\n+    var configJSON = pm2JSON();\n+\n+    configJSON.deploy = {\n+      'sample-target': {\n+        'key': '/path/to/key',\n+        'user': 'USERNAME',\n+        'host': ['HOSTNAME'],\n+        'ref': 'origin/master',\n+        'repo': 'https://GIT_USERNAME:GIT_PASSWORD@marklogic.unfuddle.com/git/REPO_NAME/',\n+        'path': '/space/projects/PROJECT_FOLDER/',\n+        'pre-deploy-local': 'echo \"an echo was executed on your local machine\"',\n+        'post-deploy': './ml local bootstrap --ml.password=SERVER_PASSWORD; ./ml local deploy modules --ml.password=SERVER_PASSWORD; ./ml local deploy content -password SERVER_PASSWORD; npm install; bower install; gulp build',","path":"app/templates/gulpfile.js","position":38,"original_position":38,"commit_id":"194e208d36d8aae942b9235da3b91221edbb5128","original_commit_id":"194e208d36d8aae942b9235da3b91221edbb5128","user":{"login":"grtjn","id":611397,"avatar_url":"https://avatars.githubusercontent.com/u/611397?v=3","gravatar_id":"","url":"https://api.github.com/users/grtjn","html_url":"https://github.com/grtjn","followers_url":"https://api.github.com/users/grtjn/followers","following_url":"https://api.github.com/users/grtjn/following{/other_user}","gists_url":"https://api.github.com/users/grtjn/gists{/gist_id}","starred_url":"https://api.github.com/users/grtjn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grtjn/subscriptions","organizations_url":"https://api.github.com/users/grtjn/orgs","repos_url":"https://api.github.com/users/grtjn/repos","events_url":"https://api.github.com/users/grtjn/events{/privacy}","received_events_url":"https://api.github.com/users/grtjn/received_events","type":"User","site_admin":false},"body":"Change this into \"post-deploy\": \"npm install; bower install; gulp build --ignoreErrors\". Roxy has good means to ask for pwd, and deploy remotely. Let's stick with that, adding the pwd in here repeatedly is both annoying and unsafe..","created_at":"2016-06-21T11:07:34Z","updated_at":"2016-06-21T11:07:34Z","html_url":"https://github.com/marklogic/slush-marklogic-node/pull/352#discussion_r67848829","pull_request_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/pulls/352","_links":{"self":{"href":"https://api.github.com/repos/marklogic/slush-marklogic-node/pulls/comments/67848829"},"html":{"href":"https://github.com/marklogic/slush-marklogic-node/pull/352#discussion_r67848829"},"pull_request":{"href":"https://api.github.com/repos/marklogic/slush-marklogic-node/pulls/352"}}},"pull_request":{"url":"https://api.github.com/repos/marklogic/slush-marklogic-node/pulls/352","id":72656763,"html_url":"https://github.com/marklogic/slush-marklogic-node/pull/352","diff_url":"https://github.com/marklogic/slush-marklogic-node/pull/352.diff","patch_url":"https://github.com/marklogic/slush-marklogic-node/pull/352.patch","issue_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/issues/352","number":352,"state":"open","locked":false,"title":"Added pm2 config generation","user":{"login":"Audarth","id":4328411,"avatar_url":"https://avatars.githubusercontent.com/u/4328411?v=3","gravatar_id":"","url":"https://api.github.com/users/Audarth","html_url":"https://github.com/Audarth","followers_url":"https://api.github.com/users/Audarth/followers","following_url":"https://api.github.com/users/Audarth/following{/other_user}","gists_url":"https://api.github.com/users/Audarth/gists{/gist_id}","starred_url":"https://api.github.com/users/Audarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Audarth/subscriptions","organizations_url":"https://api.github.com/users/Audarth/orgs","repos_url":"https://api.github.com/users/Audarth/repos","events_url":"https://api.github.com/users/Audarth/events{/privacy}","received_events_url":"https://api.github.com/users/Audarth/received_events","type":"User","site_admin":false},"body":"resolves #351 ","created_at":"2016-06-06T05:08:16Z","updated_at":"2016-06-21T11:07:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c94fb6582cc0a21de47a7a42ba11e22927972066","assignee":null,"milestone":{"url":"https://api.github.com/repos/marklogic/slush-marklogic-node/milestones/5","html_url":"https://github.com/marklogic/slush-marklogic-node/milestones/1.2.0","labels_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/milestones/5/labels","id":1295077,"number":5,"title":"1.2.0","description":"Minor enhancements, bug fixes..","creator":{"login":"grtjn","id":611397,"avatar_url":"https://avatars.githubusercontent.com/u/611397?v=3","gravatar_id":"","url":"https://api.github.com/users/grtjn","html_url":"https://github.com/grtjn","followers_url":"https://api.github.com/users/grtjn/followers","following_url":"https://api.github.com/users/grtjn/following{/other_user}","gists_url":"https://api.github.com/users/grtjn/gists{/gist_id}","starred_url":"https://api.github.com/users/grtjn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grtjn/subscriptions","organizations_url":"https://api.github.com/users/grtjn/orgs","repos_url":"https://api.github.com/users/grtjn/repos","events_url":"https://api.github.com/users/grtjn/events{/privacy}","received_events_url":"https://api.github.com/users/grtjn/received_events","type":"User","site_admin":false},"open_issues":51,"closed_issues":0,"state":"open","created_at":"2015-09-08T10:38:16Z","updated_at":"2016-06-17T08:30:59Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/pulls/352/commits","review_comments_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/pulls/352/comments","review_comment_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/issues/352/comments","statuses_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/statuses/194e208d36d8aae942b9235da3b91221edbb5128","head":{"label":"Audarth:master","ref":"master","sha":"194e208d36d8aae942b9235da3b91221edbb5128","user":{"login":"Audarth","id":4328411,"avatar_url":"https://avatars.githubusercontent.com/u/4328411?v=3","gravatar_id":"","url":"https://api.github.com/users/Audarth","html_url":"https://github.com/Audarth","followers_url":"https://api.github.com/users/Audarth/followers","following_url":"https://api.github.com/users/Audarth/following{/other_user}","gists_url":"https://api.github.com/users/Audarth/gists{/gist_id}","starred_url":"https://api.github.com/users/Audarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Audarth/subscriptions","organizations_url":"https://api.github.com/users/Audarth/orgs","repos_url":"https://api.github.com/users/Audarth/repos","events_url":"https://api.github.com/users/Audarth/events{/privacy}","received_events_url":"https://api.github.com/users/Audarth/received_events","type":"User","site_admin":false},"repo":{"id":52403488,"name":"slush-marklogic-node","full_name":"Audarth/slush-marklogic-node","owner":{"login":"Audarth","id":4328411,"avatar_url":"https://avatars.githubusercontent.com/u/4328411?v=3","gravatar_id":"","url":"https://api.github.com/users/Audarth","html_url":"https://github.com/Audarth","followers_url":"https://api.github.com/users/Audarth/followers","following_url":"https://api.github.com/users/Audarth/following{/other_user}","gists_url":"https://api.github.com/users/Audarth/gists{/gist_id}","starred_url":"https://api.github.com/users/Audarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Audarth/subscriptions","organizations_url":"https://api.github.com/users/Audarth/orgs","repos_url":"https://api.github.com/users/Audarth/repos","events_url":"https://api.github.com/users/Audarth/events{/privacy}","received_events_url":"https://api.github.com/users/Audarth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Audarth/slush-marklogic-node","description":"Slush generator for a MarkLogic/node project","fork":true,"url":"https://api.github.com/repos/Audarth/slush-marklogic-node","forks_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/forks","keys_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/teams","hooks_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/hooks","issue_events_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/issues/events{/number}","events_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/events","assignees_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/assignees{/user}","branches_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/branches{/branch}","tags_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/tags","blobs_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/statuses/{sha}","languages_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/languages","stargazers_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/stargazers","contributors_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/contributors","subscribers_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/subscribers","subscription_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/subscription","commits_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/contents/{+path}","compare_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/merges","archive_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/downloads","issues_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/issues{/number}","pulls_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/pulls{/number}","milestones_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/milestones{/number}","notifications_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/labels{/name}","releases_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/releases{/id}","deployments_url":"https://api.github.com/repos/Audarth/slush-marklogic-node/deployments","created_at":"2016-02-24T01:02:42Z","updated_at":"2016-02-24T01:02:42Z","pushed_at":"2016-06-07T02:10:22Z","git_url":"git://github.com/Audarth/slush-marklogic-node.git","ssh_url":"git@github.com:Audarth/slush-marklogic-node.git","clone_url":"https://github.com/Audarth/slush-marklogic-node.git","svn_url":"https://github.com/Audarth/slush-marklogic-node","homepage":null,"size":5265,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"marklogic:master","ref":"master","sha":"8448a4bbef732c5850ab2ca4e9f46ccebb00ac78","user":{"login":"marklogic","id":189902,"avatar_url":"https://avatars.githubusercontent.com/u/189902?v=3","gravatar_id":"","url":"https://api.github.com/users/marklogic","html_url":"https://github.com/marklogic","followers_url":"https://api.github.com/users/marklogic/followers","following_url":"https://api.github.com/users/marklogic/following{/other_user}","gists_url":"https://api.github.com/users/marklogic/gists{/gist_id}","starred_url":"https://api.github.com/users/marklogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marklogic/subscriptions","organizations_url":"https://api.github.com/users/marklogic/orgs","repos_url":"https://api.github.com/users/marklogic/repos","events_url":"https://api.github.com/users/marklogic/events{/privacy}","received_events_url":"https://api.github.com/users/marklogic/received_events","type":"Organization","site_admin":false},"repo":{"id":19721399,"name":"slush-marklogic-node","full_name":"marklogic/slush-marklogic-node","owner":{"login":"marklogic","id":189902,"avatar_url":"https://avatars.githubusercontent.com/u/189902?v=3","gravatar_id":"","url":"https://api.github.com/users/marklogic","html_url":"https://github.com/marklogic","followers_url":"https://api.github.com/users/marklogic/followers","following_url":"https://api.github.com/users/marklogic/following{/other_user}","gists_url":"https://api.github.com/users/marklogic/gists{/gist_id}","starred_url":"https://api.github.com/users/marklogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marklogic/subscriptions","organizations_url":"https://api.github.com/users/marklogic/orgs","repos_url":"https://api.github.com/users/marklogic/repos","events_url":"https://api.github.com/users/marklogic/events{/privacy}","received_events_url":"https://api.github.com/users/marklogic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/marklogic/slush-marklogic-node","description":"Slush generator for a MarkLogic/node project","fork":false,"url":"https://api.github.com/repos/marklogic/slush-marklogic-node","forks_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/forks","keys_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/teams","hooks_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/hooks","issue_events_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/issues/events{/number}","events_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/events","assignees_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/assignees{/user}","branches_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/branches{/branch}","tags_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/tags","blobs_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/statuses/{sha}","languages_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/languages","stargazers_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/stargazers","contributors_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/contributors","subscribers_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/subscribers","subscription_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/subscription","commits_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/contents/{+path}","compare_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/merges","archive_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/downloads","issues_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/issues{/number}","pulls_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/pulls{/number}","milestones_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/milestones{/number}","notifications_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/labels{/name}","releases_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/releases{/id}","deployments_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/deployments","created_at":"2014-05-13T01:17:26Z","updated_at":"2016-05-24T00:07:38Z","pushed_at":"2016-06-20T12:27:19Z","git_url":"git://github.com/marklogic/slush-marklogic-node.git","ssh_url":"git@github.com:marklogic/slush-marklogic-node.git","clone_url":"https://github.com/marklogic/slush-marklogic-node.git","svn_url":"https://github.com/marklogic/slush-marklogic-node","homepage":"https://github.com/marklogic/slush-marklogic-node/wiki","size":8502,"stargazers_count":26,"watchers_count":26,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":54,"forks":26,"open_issues":54,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marklogic/slush-marklogic-node/pulls/352"},"html":{"href":"https://github.com/marklogic/slush-marklogic-node/pull/352"},"issue":{"href":"https://api.github.com/repos/marklogic/slush-marklogic-node/issues/352"},"comments":{"href":"https://api.github.com/repos/marklogic/slush-marklogic-node/issues/352/comments"},"review_comments":{"href":"https://api.github.com/repos/marklogic/slush-marklogic-node/pulls/352/comments"},"review_comment":{"href":"https://api.github.com/repos/marklogic/slush-marklogic-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marklogic/slush-marklogic-node/pulls/352/commits"},"statuses":{"href":"https://api.github.com/repos/marklogic/slush-marklogic-node/statuses/194e208d36d8aae942b9235da3b91221edbb5128"}}}}
{"actor":{"display_login":"grtjn"}}