You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: module7-cloud-computing/r1.2-deployment/README.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,7 @@ http://imgur.com:80/
46
46
You will notice the 80 gets dropped in the URL bar. That’s because port 80 is the default port for HTTP traffic.
47
47
48
48
HTTPS traffic uses port 443. Try Hacker News.
49
+
49
50
https://news.ycombinator.com:443/
50
51
51
52
Because these ports are often public, you need special privileges to run processes using them. Also, it is not great to run Node.js on port 80 or 443 directly because you may want to open up a few different applications on these ports. With a router you will be able to send traffic from port 80 or 443 to any program you wish, depending on the headers of the incoming HTTP request.
@@ -60,7 +61,7 @@ Almost there. By default, connecting to your instance without a username will tr
60
61
To connect, the SSH command should look something like
61
62
`ssh USERNAME@[IP FROM PROVIDER]`
62
63
63
-
## Installing node and system dependencies
64
+
## Installing node
64
65
65
66
Once in an SSH session the first thing to do is get Node.js. NVM (Node Version Manager) is a pretty great way to install Node.js and allows you to easily switch versions if required.
66
67
@@ -94,9 +95,13 @@ Select the key’s contents and copy it into Github. Deploy keys are added in a
94
95
Whenever you are logged in over SSH, you want the keys to be added so that they are used to authenticate with Github. To do this, add these lines to the top of your ~/.bashrc file.
95
96
96
97
<code>
97
-
# Start the SSH agent <br>
98
-
eval `ssh-agent -s` <br>
99
-
# Add the SSH key <br>
98
+
99
+
Start the SSH agent
100
+
101
+
eval `ssh-agent -s`
102
+
103
+
Add the SSH key
104
+
100
105
ssh-add
101
106
</code>
102
107
@@ -107,7 +112,8 @@ This will make sure you use the keys whenever you log on to the server. To run t
0 commit comments