This commit is contained in:
AJ ONeal
2020-06-13 13:43:39 -06:00
parent b560b7a53d
commit 8000aa7ba5
+11 -1
View File
@@ -14,6 +14,8 @@
# > Hello, World!
# ```
#
# <br/>
#
# ### A Simple Web Server
#
# `server.js`:
@@ -28,6 +30,8 @@
# });
# ```
#
# <br/>
#
# ```bash
# node server.js
# ```
@@ -41,6 +45,8 @@
# npm install --save express
# ```
#
# <br/>
#
# `app.js`:
#
# ```js
@@ -56,6 +62,8 @@
# module.exports = app;</code></pre>
# ```
#
# <br/>
#
# `server.js`:
#
# ```js
@@ -69,6 +77,8 @@
# });
# ```
#
# <br/>
#
# ```bash
# npm start
# ```
@@ -93,7 +103,7 @@ update_node_home() {
webi_path_add "$common_node_home/bin"
}
if [ -x "$new_go_home/bin/go" ]; then
if [ -x "$new_node_home/bin/node" ]; then
update_node_home
exit 0
fi