{"action":"created","comment":{"url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/pulls/comments/90248469","pull_request_review_id":10769613,"id":90248469,"diff_hunk":"@@ -0,0 +1,165 @@\n+# Custom Deployment\n+\n+## Learning Objectives\n+\n+- Configure a linux web server\n+- Set up public key ssh authentication\n+- Deploy a nodejs app\n+- Configure a reverse proxy with nginx\n+\n+## Set up droplet\n+\n+Please use my referral code - well both get 10 bucks in credits!\n+\n+<http://jshawl.com/do>\n+\n+All the defaults are fine. Choose the cheapest droplet.\n+\n+All the way at the bottom, add your ssh key.\n+\n+You can get your ssh key by typing in\n+\n+```\n+$ cat ~/.ssh/id_rsa.pub\n+```\n+\n+This will allow you to log into the server without having to type your password.\n+\n+```\n+$ ssh root@i.p.address.here\n+```\n+\n+## Create a user and password\n+\n+```\n+$ useradd -m theusernameyouwant -G sudo -s /bin/bash\n+$ passwd theusernameyouchose\n+```\n+\n+## `/etc/hosts`\n+\n+Remembering an IP address is difficult and time consuming. Let's fake a domain name\n+by editing our hosts file. This file is consulted before asking DNS servers what\n+ip address a domain points to.\n+\n+```\n+sudo nano /etc/hosts\n+```\n+\n+add the following line at the bottom:\n+\n+```\n+your.ip.address.here example.com\n+```\n+\n+Feel free to replace example.com with whatever domain you'd like.\n+\n+Test it out!\n+\n+```\n+$ ssh yourusername@example.com\n+$ mkdir .ssh/\n+```\n+\n+## Pub key auth\n+\n+Typing in a password is difficult and time consuming. We can prevent having to type\n+in a password by configuring public key authentication.\n+\n+Locally...\n+\n+```\n+$ cat ~/.ssh/id_rsa.pub | ssh yourusername@example.com \"cat >> ~/.ssh/authorized_keys\"\n+$ ssh yourusername@example.com\n+```\n+\n+You'll know you did this correctly if you are logged in, but not prompted for a password.\n+\n+## Install git\n+\n+```\n+$ sudo apt-get install git\n+$ mkdir ~/git\n+$ git init --bare ~/git/yourdomain.com","path":"readme.md","position":83,"original_position":83,"commit_id":"699e77a72451876b7c60b0f8d4d1b5f949534226","original_commit_id":"699e77a72451876b7c60b0f8d4d1b5f949534226","user":{"login":"amaseda","id":3519147,"avatar_url":"https://avatars.githubusercontent.com/u/3519147?v=3","gravatar_id":"","url":"https://api.github.com/users/amaseda","html_url":"https://github.com/amaseda","followers_url":"https://api.github.com/users/amaseda/followers","following_url":"https://api.github.com/users/amaseda/following{/other_user}","gists_url":"https://api.github.com/users/amaseda/gists{/gist_id}","starred_url":"https://api.github.com/users/amaseda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaseda/subscriptions","organizations_url":"https://api.github.com/users/amaseda/orgs","repos_url":"https://api.github.com/users/amaseda/repos","events_url":"https://api.github.com/users/amaseda/events{/privacy}","received_events_url":"https://api.github.com/users/amaseda/received_events","type":"User","site_admin":false},"body":"What does `--bare` mean?","created_at":"2016-11-30T14:58:44Z","updated_at":"2016-11-30T15:00:02Z","html_url":"https://github.com/ga-wdi-lessons/custom-deployment/pull/1#discussion_r90248469","pull_request_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/pulls/comments/90248469"},"html":{"href":"https://github.com/ga-wdi-lessons/custom-deployment/pull/1#discussion_r90248469"},"pull_request":{"href":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/pulls/1","id":95904348,"html_url":"https://github.com/ga-wdi-lessons/custom-deployment/pull/1","diff_url":"https://github.com/ga-wdi-lessons/custom-deployment/pull/1.diff","patch_url":"https://github.com/ga-wdi-lessons/custom-deployment/pull/1.patch","issue_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/issues/1","number":1,"state":"open","locked":false,"title":"peppin","user":{"login":"jshawl","id":3824954,"avatar_url":"https://avatars.githubusercontent.com/u/3824954?v=3","gravatar_id":"","url":"https://api.github.com/users/jshawl","html_url":"https://github.com/jshawl","followers_url":"https://api.github.com/users/jshawl/followers","following_url":"https://api.github.com/users/jshawl/following{/other_user}","gists_url":"https://api.github.com/users/jshawl/gists{/gist_id}","starred_url":"https://api.github.com/users/jshawl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshawl/subscriptions","organizations_url":"https://api.github.com/users/jshawl/orgs","repos_url":"https://api.github.com/users/jshawl/repos","events_url":"https://api.github.com/users/jshawl/events{/privacy}","received_events_url":"https://api.github.com/users/jshawl/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-30T14:45:41Z","updated_at":"2016-11-30T15:00:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32490415c84be2c3f8d24e642c960f234fda6fd7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/issues/1/comments","statuses_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/statuses/699e77a72451876b7c60b0f8d4d1b5f949534226","head":{"label":"ga-wdi-lessons:pep","ref":"pep","sha":"699e77a72451876b7c60b0f8d4d1b5f949534226","user":{"login":"ga-wdi-lessons","id":16711211,"avatar_url":"https://avatars.githubusercontent.com/u/16711211?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-lessons","html_url":"https://github.com/ga-wdi-lessons","followers_url":"https://api.github.com/users/ga-wdi-lessons/followers","following_url":"https://api.github.com/users/ga-wdi-lessons/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-lessons/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-lessons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-lessons/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-lessons/orgs","repos_url":"https://api.github.com/users/ga-wdi-lessons/repos","events_url":"https://api.github.com/users/ga-wdi-lessons/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-lessons/received_events","type":"Organization","site_admin":false},"repo":{"id":75193613,"name":"custom-deployment","full_name":"ga-wdi-lessons/custom-deployment","owner":{"login":"ga-wdi-lessons","id":16711211,"avatar_url":"https://avatars.githubusercontent.com/u/16711211?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-lessons","html_url":"https://github.com/ga-wdi-lessons","followers_url":"https://api.github.com/users/ga-wdi-lessons/followers","following_url":"https://api.github.com/users/ga-wdi-lessons/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-lessons/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-lessons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-lessons/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-lessons/orgs","repos_url":"https://api.github.com/users/ga-wdi-lessons/repos","events_url":"https://api.github.com/users/ga-wdi-lessons/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-lessons/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-wdi-lessons/custom-deployment","description":null,"fork":false,"url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment","forks_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/forks","keys_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/teams","hooks_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/hooks","issue_events_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/issues/events{/number}","events_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/events","assignees_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/assignees{/user}","branches_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/branches{/branch}","tags_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/tags","blobs_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/languages","stargazers_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/stargazers","contributors_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/contributors","subscribers_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/subscribers","subscription_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/subscription","commits_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/contents/{+path}","compare_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/merges","archive_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/downloads","issues_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/issues{/number}","pulls_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/labels{/name}","releases_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/releases{/id}","deployments_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/deployments","created_at":"2016-11-30T14:17:00Z","updated_at":"2016-11-30T14:17:00Z","pushed_at":"2016-11-30T14:45:42Z","git_url":"git://github.com/ga-wdi-lessons/custom-deployment.git","ssh_url":"git@github.com:ga-wdi-lessons/custom-deployment.git","clone_url":"https://github.com/ga-wdi-lessons/custom-deployment.git","svn_url":"https://github.com/ga-wdi-lessons/custom-deployment","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ga-wdi-lessons:master","ref":"master","sha":"8365732ca4ddf5e59bc350cad4863b25fbabc437","user":{"login":"ga-wdi-lessons","id":16711211,"avatar_url":"https://avatars.githubusercontent.com/u/16711211?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-lessons","html_url":"https://github.com/ga-wdi-lessons","followers_url":"https://api.github.com/users/ga-wdi-lessons/followers","following_url":"https://api.github.com/users/ga-wdi-lessons/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-lessons/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-lessons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-lessons/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-lessons/orgs","repos_url":"https://api.github.com/users/ga-wdi-lessons/repos","events_url":"https://api.github.com/users/ga-wdi-lessons/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-lessons/received_events","type":"Organization","site_admin":false},"repo":{"id":75193613,"name":"custom-deployment","full_name":"ga-wdi-lessons/custom-deployment","owner":{"login":"ga-wdi-lessons","id":16711211,"avatar_url":"https://avatars.githubusercontent.com/u/16711211?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-lessons","html_url":"https://github.com/ga-wdi-lessons","followers_url":"https://api.github.com/users/ga-wdi-lessons/followers","following_url":"https://api.github.com/users/ga-wdi-lessons/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-lessons/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-lessons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-lessons/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-lessons/orgs","repos_url":"https://api.github.com/users/ga-wdi-lessons/repos","events_url":"https://api.github.com/users/ga-wdi-lessons/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-lessons/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-wdi-lessons/custom-deployment","description":null,"fork":false,"url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment","forks_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/forks","keys_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/teams","hooks_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/hooks","issue_events_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/issues/events{/number}","events_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/events","assignees_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/assignees{/user}","branches_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/branches{/branch}","tags_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/tags","blobs_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/languages","stargazers_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/stargazers","contributors_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/contributors","subscribers_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/subscribers","subscription_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/subscription","commits_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/contents/{+path}","compare_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/merges","archive_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/downloads","issues_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/issues{/number}","pulls_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/labels{/name}","releases_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/releases{/id}","deployments_url":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/deployments","created_at":"2016-11-30T14:17:00Z","updated_at":"2016-11-30T14:17:00Z","pushed_at":"2016-11-30T14:45:42Z","git_url":"git://github.com/ga-wdi-lessons/custom-deployment.git","ssh_url":"git@github.com:ga-wdi-lessons/custom-deployment.git","clone_url":"https://github.com/ga-wdi-lessons/custom-deployment.git","svn_url":"https://github.com/ga-wdi-lessons/custom-deployment","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/pulls/1"},"html":{"href":"https://github.com/ga-wdi-lessons/custom-deployment/pull/1"},"issue":{"href":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/issues/1"},"comments":{"href":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ga-wdi-lessons/custom-deployment/statuses/699e77a72451876b7c60b0f8d4d1b5f949534226"}}}}
{"actor":{"display_login":"amaseda"}}