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"} ]