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

服务端启动后非第一次上传app包导致服务端崩溃问题求解 #319

Open
SnowdinTown opened this issue Feb 24, 2021 · 4 comments

Comments

@SnowdinTown
Copy link

Screenshot 2021-02-24 105307
观察发现非第一次上传完成,本机会向服务端发送 “GET /download/fx/xxxx” 请求,这个请求会出现“no such file or directory”报错。求解这个请求的作用是什么,相关代码是那一部分?

@cmcreborn
Copy link

cmcreborn commented Feb 26, 2021

Screenshot 2021-02-24 105307
观察发现非第一次上传完成,本机会向服务端发送 “GET /download/fx/xxxx” 请求,这个请求会出现“no such file or directory”报错。求解这个请求的作用是什么,相关代码是那一部分?


這個應該是要去下載熱更新包才會去做請求 用get去download
app.js
app.use(_.get(config, 'local.public', '/download'), express.static(localStorageDir));

@SnowdinTown
Copy link
Author

Screenshot 2021-02-24 105307
观察发现非第一次上传完成,本机会向服务端发送 “GET /download/fx/xxxx” 请求,这个请求会出现“no such file or directory”报错。求解这个请求的作用是什么,相关代码是那一部分?

這個應該是要去下載熱更新包才會去做請求 用get去download
app.js
app.use(_.get(config, 'local.public', '/download'), express.static(localStorageDir));
这个get是在发布app后立即执行的,似乎是服务端内部有代码在发布app的post请求后会立即调用这个get。我希望能够定位这部分代码

@chopstickqy
Copy link

chopstickqy commented Jul 20, 2021

@SnowdinTown
修改工程目录下 core/utils/security.js 207行代码
relativePath = path.join('CodePush', matchresult[0])

relativePath = path.join('www', matchresult[0]);
里面具体逻辑哪里出的问题还没时间看,后面有进展了,会更新。
我们团队已经有成功使用这个服务端,如果哪位有问题,可以发出来,我遇到的会帮助解答。

@ludufre
Copy link

ludufre commented Nov 1, 2021

Thanks @chopstickqy. This worked.

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

4 participants