From 70469ee29f3e81a13d0765057798c3e2b3267889 Mon Sep 17 00:00:00 2001 From: alwxkxk <592364224@qq.com> Date: Sat, 26 Jun 2021 12:35:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20demo0.1=20index.js=20=E6=9B=B4=E5=90=8D?= =?UTF-8?q?=E4=B8=BA=20server.js=20=EF=BC=8C=E9=81=BF=E5=85=8D=E6=AD=A7?= =?UTF-8?q?=E4=B9=89=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo0.1/README.md | 2 +- demo0.1/{index.js => server.js} | 0 pm2.json | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename demo0.1/{index.js => server.js} (100%) diff --git a/demo0.1/README.md b/demo0.1/README.md index 209b3f4..d451d80 100644 --- a/demo0.1/README.md +++ b/demo0.1/README.md @@ -1,7 +1,7 @@ # demo0.1 ```bash #启动 -node index +node server.js #浏览器访问 127.0.0.1:8000 #tcp客户端连接 127.0.0.1:9000 diff --git a/demo0.1/index.js b/demo0.1/server.js similarity index 100% rename from demo0.1/index.js rename to demo0.1/server.js diff --git a/pm2.json b/pm2.json index 5884738..82c1cf1 100644 --- a/pm2.json +++ b/pm2.json @@ -1,7 +1,7 @@ { "apps":[ {"name":"base-tcp1","script":"./基础教程/tcp1/tcp1.js"}, - {"name":"demo0.1","script":"./index.js","cwd":"./demo0.1"}, + {"name":"demo0.1","script":"./server.js","cwd":"./demo0.1"}, {"name":"demo1","script":"./demo1/myapp/bin/www"}, {"name":"demo2","script":"./demo2/myapp/bin/www"} ]