{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/susi_server/pulls/comments/365592226","pull_request_review_id":341583281,"id":365592226,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM2NTU5MjIyNg==","diff_hunk":"@@ -0,0 +1,22 @@\n+#!/bin/bash\n+set -e\n+git config --global push.default simple # we only want to push one branch — master\n+git fetch --unshallow origin\n+ssh-keyscan -H $IP >> ~/.ssh/known_hosts\n+# add repo on vps as a repote\n+git remote add production ssh://$USER@$IP/home/$USER/susi-server-git\n+# push updates\n+git push -f production HEAD:master\n+# build and start susi server\n+ssh $USER@$IP <<EOF\n+  cd susi-server-git\n+  bin/stop.sh\n+  git submodule update --recursive --remote\n+  git submodule update --init --recursive\n+  ./gradlew build -x test\n+EOF\n+\n+ssh $USER@$IP <<EOF","path":"scripts/deploy_hcloud.sh","position":19,"original_position":19,"commit_id":"d9743383756385160c89f276eb288384db1151c0","original_commit_id":"d9743383756385160c89f276eb288384db1151c0","user":{"login":"kumuditha-udayanga","id":27630091,"node_id":"MDQ6VXNlcjI3NjMwMDkx","avatar_url":"https://avatars2.githubusercontent.com/u/27630091?v=4","gravatar_id":"","url":"https://api.github.com/users/kumuditha-udayanga","html_url":"https://github.com/kumuditha-udayanga","followers_url":"https://api.github.com/users/kumuditha-udayanga/followers","following_url":"https://api.github.com/users/kumuditha-udayanga/following{/other_user}","gists_url":"https://api.github.com/users/kumuditha-udayanga/gists{/gist_id}","starred_url":"https://api.github.com/users/kumuditha-udayanga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumuditha-udayanga/subscriptions","organizations_url":"https://api.github.com/users/kumuditha-udayanga/orgs","repos_url":"https://api.github.com/users/kumuditha-udayanga/repos","events_url":"https://api.github.com/users/kumuditha-udayanga/events{/privacy}","received_events_url":"https://api.github.com/users/kumuditha-udayanga/received_events","type":"User","site_admin":false},"body":"@norbusan Yes, When the Gradle build is completed it is closing the ssh session. Because of that, we have to start a new session to start the server.","created_at":"2020-01-12T15:50:57Z","updated_at":"2020-01-12T15:50:57Z","html_url":"https://github.com/fossasia/susi_server/pull/1433#discussion_r365592226","pull_request_url":"https://api.github.com/repos/fossasia/susi_server/pulls/1433","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/fossasia/susi_server/pulls/comments/365592226"},"html":{"href":"https://github.com/fossasia/susi_server/pull/1433#discussion_r365592226"},"pull_request":{"href":"https://api.github.com/repos/fossasia/susi_server/pulls/1433"}},"in_reply_to_id":365591581},"pull_request":{"url":"https://api.github.com/repos/fossasia/susi_server/pulls/1433","id":359640093,"node_id":"MDExOlB1bGxSZXF1ZXN0MzU5NjQwMDkz","html_url":"https://github.com/fossasia/susi_server/pull/1433","diff_url":"https://github.com/fossasia/susi_server/pull/1433.diff","patch_url":"https://github.com/fossasia/susi_server/pull/1433.patch","issue_url":"https://api.github.com/repos/fossasia/susi_server/issues/1433","number":1433,"state":"open","locked":false,"title":"Create a script to deploy on a VPS using Travis","user":{"login":"kumuditha-udayanga","id":27630091,"node_id":"MDQ6VXNlcjI3NjMwMDkx","avatar_url":"https://avatars2.githubusercontent.com/u/27630091?v=4","gravatar_id":"","url":"https://api.github.com/users/kumuditha-udayanga","html_url":"https://github.com/kumuditha-udayanga","followers_url":"https://api.github.com/users/kumuditha-udayanga/followers","following_url":"https://api.github.com/users/kumuditha-udayanga/following{/other_user}","gists_url":"https://api.github.com/users/kumuditha-udayanga/gists{/gist_id}","starred_url":"https://api.github.com/users/kumuditha-udayanga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumuditha-udayanga/subscriptions","organizations_url":"https://api.github.com/users/kumuditha-udayanga/orgs","repos_url":"https://api.github.com/users/kumuditha-udayanga/repos","events_url":"https://api.github.com/users/kumuditha-udayanga/events{/privacy}","received_events_url":"https://api.github.com/users/kumuditha-udayanga/received_events","type":"User","site_admin":false},"body":"Fixes #1404 \r\n\r\nChanges: \r\n- Create a script to automatically build and deploy to hcloud (or any VPS) using Travis.\r\n- Create an encrypted Travis key to generate an ssh key. \r\n\r\nPreview Link: http://88.198.228.198:4000/ (Deployed on Hetzner using Travis).\r\n\r\nEnvironment variables: \r\n$IP (IP address of the VPS)\r\n$USER (User on VPS)\r\n\r\nCurrently, this Travis encrypted key is encrypted to my fork. Someone, please provide me with the organizational access to generate a key to upstream or create a key and commit to this PR.\r\nThese are the steps to config the server. \r\n1. create an empty git repository on the home directory of the user\r\n2. add the decrypted key to authorized keys on the server                  ","created_at":"2020-01-06T17:39:01Z","updated_at":"2020-01-12T15:50:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40e721c0b5c59627308e4e723deccf9ecaccaf73","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fossasia/susi_server/pulls/1433/commits","review_comments_url":"https://api.github.com/repos/fossasia/susi_server/pulls/1433/comments","review_comment_url":"https://api.github.com/repos/fossasia/susi_server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/susi_server/issues/1433/comments","statuses_url":"https://api.github.com/repos/fossasia/susi_server/statuses/d9743383756385160c89f276eb288384db1151c0","head":{"label":"kumuditha-udayanga:hcloud","ref":"hcloud","sha":"d9743383756385160c89f276eb288384db1151c0","user":{"login":"kumuditha-udayanga","id":27630091,"node_id":"MDQ6VXNlcjI3NjMwMDkx","avatar_url":"https://avatars2.githubusercontent.com/u/27630091?v=4","gravatar_id":"","url":"https://api.github.com/users/kumuditha-udayanga","html_url":"https://github.com/kumuditha-udayanga","followers_url":"https://api.github.com/users/kumuditha-udayanga/followers","following_url":"https://api.github.com/users/kumuditha-udayanga/following{/other_user}","gists_url":"https://api.github.com/users/kumuditha-udayanga/gists{/gist_id}","starred_url":"https://api.github.com/users/kumuditha-udayanga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumuditha-udayanga/subscriptions","organizations_url":"https://api.github.com/users/kumuditha-udayanga/orgs","repos_url":"https://api.github.com/users/kumuditha-udayanga/repos","events_url":"https://api.github.com/users/kumuditha-udayanga/events{/privacy}","received_events_url":"https://api.github.com/users/kumuditha-udayanga/received_events","type":"User","site_admin":false},"repo":{"id":230780522,"node_id":"MDEwOlJlcG9zaXRvcnkyMzA3ODA1MjI=","name":"susi_server","full_name":"kumuditha-udayanga/susi_server","private":false,"owner":{"login":"kumuditha-udayanga","id":27630091,"node_id":"MDQ6VXNlcjI3NjMwMDkx","avatar_url":"https://avatars2.githubusercontent.com/u/27630091?v=4","gravatar_id":"","url":"https://api.github.com/users/kumuditha-udayanga","html_url":"https://github.com/kumuditha-udayanga","followers_url":"https://api.github.com/users/kumuditha-udayanga/followers","following_url":"https://api.github.com/users/kumuditha-udayanga/following{/other_user}","gists_url":"https://api.github.com/users/kumuditha-udayanga/gists{/gist_id}","starred_url":"https://api.github.com/users/kumuditha-udayanga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumuditha-udayanga/subscriptions","organizations_url":"https://api.github.com/users/kumuditha-udayanga/orgs","repos_url":"https://api.github.com/users/kumuditha-udayanga/repos","events_url":"https://api.github.com/users/kumuditha-udayanga/events{/privacy}","received_events_url":"https://api.github.com/users/kumuditha-udayanga/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kumuditha-udayanga/susi_server","description":"SUSI.AI server backend - the Artificial Intelligence server for personal assistants  https://api.susi.ai","fork":true,"url":"https://api.github.com/repos/kumuditha-udayanga/susi_server","forks_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/forks","keys_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/teams","hooks_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/hooks","issue_events_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/issues/events{/number}","events_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/events","assignees_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/assignees{/user}","branches_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/branches{/branch}","tags_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/tags","blobs_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/git/refs{/sha}","trees_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/statuses/{sha}","languages_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/languages","stargazers_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/stargazers","contributors_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/contributors","subscribers_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/subscribers","subscription_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/subscription","commits_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/commits{/sha}","git_commits_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/git/commits{/sha}","comments_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/comments{/number}","issue_comment_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/issues/comments{/number}","contents_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/contents/{+path}","compare_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/merges","archive_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/downloads","issues_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/issues{/number}","pulls_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/pulls{/number}","milestones_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/milestones{/number}","notifications_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/labels{/name}","releases_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/releases{/id}","deployments_url":"https://api.github.com/repos/kumuditha-udayanga/susi_server/deployments","created_at":"2019-12-29T17:15:35Z","updated_at":"2020-01-06T15:29:41Z","pushed_at":"2020-01-10T03:55:38Z","git_url":"git://github.com/kumuditha-udayanga/susi_server.git","ssh_url":"git@github.com:kumuditha-udayanga/susi_server.git","clone_url":"https://github.com/kumuditha-udayanga/susi_server.git","svn_url":"https://github.com/kumuditha-udayanga/susi_server","homepage":"","size":248083,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"fossasia:development","ref":"development","sha":"2d3dcb4272feb767143a83dac61d4223b3988366","user":{"login":"fossasia","id":6295529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyOTU1Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6295529?v=4","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":68240213,"node_id":"MDEwOlJlcG9zaXRvcnk2ODI0MDIxMw==","name":"susi_server","full_name":"fossasia/susi_server","private":false,"owner":{"login":"fossasia","id":6295529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyOTU1Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6295529?v=4","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/fossasia/susi_server","description":"SUSI.AI server backend - the Artificial Intelligence server for personal assistants  https://api.susi.ai","fork":false,"url":"https://api.github.com/repos/fossasia/susi_server","forks_url":"https://api.github.com/repos/fossasia/susi_server/forks","keys_url":"https://api.github.com/repos/fossasia/susi_server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/susi_server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/susi_server/teams","hooks_url":"https://api.github.com/repos/fossasia/susi_server/hooks","issue_events_url":"https://api.github.com/repos/fossasia/susi_server/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/susi_server/events","assignees_url":"https://api.github.com/repos/fossasia/susi_server/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/susi_server/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/susi_server/tags","blobs_url":"https://api.github.com/repos/fossasia/susi_server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/susi_server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/susi_server/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/susi_server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/susi_server/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/susi_server/languages","stargazers_url":"https://api.github.com/repos/fossasia/susi_server/stargazers","contributors_url":"https://api.github.com/repos/fossasia/susi_server/contributors","subscribers_url":"https://api.github.com/repos/fossasia/susi_server/subscribers","subscription_url":"https://api.github.com/repos/fossasia/susi_server/subscription","commits_url":"https://api.github.com/repos/fossasia/susi_server/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/susi_server/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/susi_server/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/susi_server/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/susi_server/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/susi_server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/susi_server/merges","archive_url":"https://api.github.com/repos/fossasia/susi_server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/susi_server/downloads","issues_url":"https://api.github.com/repos/fossasia/susi_server/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/susi_server/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/susi_server/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/susi_server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/susi_server/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/susi_server/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/susi_server/deployments","created_at":"2016-09-14T20:21:09Z","updated_at":"2020-01-12T15:04:44Z","pushed_at":"2020-01-12T14:21:56Z","git_url":"git://github.com/fossasia/susi_server.git","ssh_url":"git@github.com:fossasia/susi_server.git","clone_url":"https://github.com/fossasia/susi_server.git","svn_url":"https://github.com/fossasia/susi_server","homepage":"","size":248198,"stargazers_count":1911,"watchers_count":1911,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1068,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":56,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":1068,"open_issues":56,"watchers":1911,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/susi_server/pulls/1433"},"html":{"href":"https://github.com/fossasia/susi_server/pull/1433"},"issue":{"href":"https://api.github.com/repos/fossasia/susi_server/issues/1433"},"comments":{"href":"https://api.github.com/repos/fossasia/susi_server/issues/1433/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/susi_server/pulls/1433/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/susi_server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/susi_server/pulls/1433/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/susi_server/statuses/d9743383756385160c89f276eb288384db1151c0"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"kumuditha-udayanga"}}