Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问我自己的服务端源码是不是应该要全部放在hots文件夹下面啊? #14

Open
exe19890522 opened this issue Sep 5, 2021 · 0 comments

Comments

@exe19890522
Copy link

rt,我现在还没开始移植服务端代码,就是用简单服务端代码测试,但是遇到好多问题
1.package.json文件里面
"scripts": {
"shouye": "node index.js",
"start": "node index.js",
"test": "echo "Error: no test specified" && exit 1"
}
我用两个bat文件来启动,内容是npm shouye 和 npm start;很奇怪start的可以启动,shouye的启动后直接闪退了。明明都是一样的
2.我是希望可以吧这个热重载的功能跟服务端源码一起启动,但是不知道怎么写代码,虽然也可以启动2个bat来实现,但是万一以后有新需求就麻烦了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant