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

怎么解决每次部署完推送后需要重新设置域名? #3513

Closed
Lartry opened this issue Apr 1, 2019 · 3 comments · Fixed by hexojs/hexo-deployer-git#351
Closed

Comments

@Lartry
Copy link

Lartry commented Apr 1, 2019

每次使用命令hexo g hexo d 部署完推送后,都需要进行域名的重新设置。在根目录的配置文件中配置了URL地址,也按说明添加了CNAME文件。

config.yml文件的设置:
url: https://libtry.com
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:

CNAME文件内容:
libtry.com

我是哪里错了吗?

@Lartry Lartry changed the title 怎么解决每次部署完推送后需要重写设置域名? 怎么解决每次部署完推送后需要重新设置域名? Apr 1, 2019
@Lartry
Copy link
Author

Lartry commented Apr 1, 2019

关闭此问题。
问题已解决,在本地再添加一份就好了。

@Lartry Lartry closed this as completed Apr 1, 2019
@Lartry Lartry reopened this Apr 1, 2019
@Lartry Lartry closed this as completed Apr 1, 2019
@linshengxuan
Copy link

什么意思 在哪里添加

@uiolee
Copy link
Member

uiolee commented Apr 9, 2024

https://github.com/hexojs/hexo-deployer-git/pull/351/files

put CNAME file in source/ dir

@hexojs hexojs locked as resolved and limited conversation to collaborators Apr 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants