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

Deploy overwrites custom domain setting. I have a CNAME file under \source. #4205

Closed
3 of 5 tasks
noodlemaster opened this issue Mar 26, 2020 · 5 comments
Closed
3 of 5 tasks
Labels

Comments

@noodlemaster
Copy link

noodlemaster commented Mar 26, 2020

Check List

Please check followings before submitting a new issue.

  • I have already read Docs page & Troubleshooting page
  • I have already searched existing issues and they are not help to me
  • I examined error or warning messages and it's difficult to solve
  • Using the latest version of Hexo (run hexo version to check)
  • Node.js is higher than 8.6.0

Question

Environment & Settings

Node.js & npm version

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Hexo and Plugin version(npm ls --depth 0)

Your package.json package.json

Others

Hi, I have been experienced an issue where every time i use hexo deploy, it overwrites the custom domain setting on github page. I have a CNAME.txt file with my domain name under \source. And it does generate a same file under \public.
Screen Shot 2020-03-26 at 6 10 14 PM

@noodlemaster
Copy link
Author

Or should I write www.mydomain.com in CNAME.txt and put www.mydomian.com in Github setting as well?

@pplmx
Copy link

pplmx commented Mar 27, 2020

Yes, you should set both to be the same.

$ cat CNAME
domain.com

github pages custom domain settings should be also set to domain.com

@stevenjoezhang
Copy link
Member

Hi, There is a discussion about it: hexojs/hexo-deployer-git#87

@noodlemaster
Copy link
Author

Hi, I have set my domain in CNAME as domain.com so is the custom domain setting on github, bur it still doesn't work...

Screen Shot 2020-03-27 at 9 48 13 AM

Screen Shot 2020-03-27 at 9 47 24 AM

@stale
Copy link

stale bot commented May 30, 2020

This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 30, 2020
@stale stale bot closed this as completed Jun 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants