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 上 #56

Open
zzzxxxyyy7 opened this issue Dec 15, 2024 · 2 comments
Open

想问一下大佬如何部署在 Nginx 上 #56

zzzxxxyyy7 opened this issue Dec 15, 2024 · 2 comments
Labels
needs more info Issue reporter needs to provide more information for maintainers to take action

Comments

@zzzxxxyyy7
Copy link

我直接把 public 生成的文件放在 html 目录下,js 和 css 都没生效

@ch1ny
Copy link
Owner

ch1ny commented Dec 15, 2024

nginx 怎么配的

@ch1ny ch1ny added the needs more info Issue reporter needs to provide more information for maintainers to take action label Dec 15, 2024
@zzzxxxyyy7
Copy link
Author

Blog

server {
    listen       7798;
    server_name  blog.catch.top;

    location / {
        root   /usr/local/nginx/htmlblog;
        index  index.html;
        try_files $uri $uri/ /index.html;
    }
}

这是我的配置,其中我把 hexo 生成的 public 目录下的文件都放到了  htmlblog 下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Issue reporter needs to provide more information for maintainers to take action
Projects
None yet
Development

No branches or pull requests

2 participants