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

这个拿nginx怎么部署呢? #66

Open
Tmalll opened this issue Jul 17, 2023 · 8 comments
Open

这个拿nginx怎么部署呢? #66

Tmalll opened this issue Jul 17, 2023 · 8 comments

Comments

@Tmalll
Copy link

Tmalll commented Jul 17, 2023

有没有大佬给个配置模板参考一下?
我解压出来以后 在server里添加 root /yacddir; 以后浏览器打开只显示一个图标,页面什么都没有

@ghost
Copy link

ghost commented Jul 17, 2023

如果你是从release中下载的源码的压缩包的话,是需要自行安装依赖打包出生产环境的代码再部署的

@Tmalll
Copy link
Author

Tmalll commented Jul 17, 2023

如果你是从release中下载的源码的压缩包的话,是需要自行安装依赖打包出生产环境的代码再部署的

我是下载的 https://github.com/MetaCubeX/Yacd-meta/tree/gh-pages 里面的
https://github.com/MetaCubeX/Yacd-meta/archive/refs/heads/gh-pages.zip 解压缩出来的用的, 这个不行吗?
这个我直接拿meta.core部署没问题, 但是我想在nginx上部署.

这是解压出来的路径
image

配置文件
image

参考的这个 https://blog.thris.me/archives/cldash-https.html
image

然后chrome打开就这样只有一个图标, 其他的都不显示
image

@ghost
Copy link

ghost commented Jul 17, 2023

image
我本地试了一下是没有问题的,你的nginx是否有报错日志?

@Tmalll
Copy link
Author

Tmalll commented Jul 17, 2023

image 我本地试了一下是没有问题的,你的nginx是否有报错日志?

没有哎, 只有下面这些访问日志. 换了几种浏览器都是这个样子... chrome firefox等等

[2023-07-17T22:37:45+08:00 - 200 - 192.168.1.100 - (Real IP - "-")] --- [- -> "-" -> 1242 -> "GET / HTTP/1.1"] --- ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 Edg/91.0.864.71"]
[2023-07-17T22:37:45+08:00 - 200 - 192.168.1.100 - (Real IP - "-")] --- [- -> "http://192.168.1.40:11180/" -> 483731 -> "GET /assets/index-f0dc51cb.js HTTP/1.1"] --- ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 Edg/91.0.864.71"]
[2023-07-17T22:37:45+08:00 - 200 - 192.168.1.100 - (Real IP - "-")] --- [- -> "http://192.168.1.40:11180/" -> 142466 -> "GET /assets/index-64292e67.css HTTP/1.1"] --- ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 Edg/91.0.864.71"]
[2023-07-17T22:37:45+08:00 - 200 - 192.168.1.100 - (Real IP - "-")] --- [- -> "http://192.168.1.40:11180/" -> 136 -> "GET /registerSW.js HTTP/1.1"] --- ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 Edg/91.0.864.71"]
[2023-07-17T22:37:45+08:00 - 200 - 192.168.1.100 - (Real IP - "-")] --- [- -> "http://192.168.1.40:11180/" -> 181508 -> "GET /yacd.ico HTTP/1.1"] --- ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 Edg/91.0.864.71"]
[2023-07-17T22:38:20+08:00 - 304 - 192.168.1.100 - (Real IP - "-")] --- [- -> "-" -> 0 -> "GET / HTTP/1.1"] --- ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 Edg/91.0.864.71"]
[2023-07-17T22:38:20+08:00 - 200 - 192.168.1.100 - (Real IP - "-")] --- [- -> "http://192.168.1.40:11180/" -> 181508 -> "GET /yacd.ico HTTP/1.1"] --- ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 Edg/91.0.864.71"]
[2023-07-17T22:38:21+08:00 - 304 - 192.168.1.100 - (Real IP - "-")] --- [- -> "-" -> 0 -> "GET / HTTP/1.1"] --- ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 Edg/91.0.864.71"]
[2023-07-17T22:38:21+08:00 - 200 - 192.168.1.100 - (Real IP - "-")] --- [- -> "http://192.168.1.40:11180/" -> 181508 -> "GET /yacd.ico HTTP/1.1"] --- ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 Edg/91.0.864.71"]
[2023-07-17T22:38:21+08:00 - 304 - 192.168.1.100 - (Real IP - "-")] --- [- -> "-" -> 0 -> "GET / HTTP/1.1"] --- ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 Edg/91.0.864.71"]
[2023-07-17T22:38:21+08:00 - 200 - 192.168.1.100 - (Real IP - "-")] --- [- -> "http://192.168.1.40:11180/" -> 181508 -> "GET /yacd.ico HTTP/1.1"] --- ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 Edg/91.0.864.71"]

@Tmalll
Copy link
Author

Tmalll commented Jul 18, 2023

image 我本地试了一下是没有问题的,你的nginx是否有报错日志?

你这个nginx是什么版本呀? 是不是http下面有什么设置? 能把你http{}下面除了各个server{}的配置分享一下吗?

@Tmalll
Copy link
Author

Tmalll commented Jul 18, 2023

如果你是从release中下载的源码的压缩包的话,是需要自行安装依赖打包出生产环境的代码再部署的

浏览器版本是
image
不知道是不是浏览器的问题, firefox中能看到如下错误提示.
image
image

下面这个是chrome什么提示都没有
image
image

还尝试了以下几个版本的浏览器, 都是这个样子
image
image

就firefox和下面这个centbrowser有提示错误, 下面的是centbrowser提示的错误
image

@8MiYile
Copy link

8MiYile commented Jul 18, 2023

要不考虑用gh-page编译的?

@Tmalll
Copy link
Author

Tmalll commented Jul 18, 2023

gh-page

我这就是直接下载的gh-page分支用的.

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

2 participants