-
Notifications
You must be signed in to change notification settings - Fork 191
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
Custom domain gets deleted on deploy - CNAME not working #236
Comments
Also getting this issue |
In your instance add the CNAME file to the static folder. |
@adamsandle the CNAME file is in the |
…on gh-paged deployment ... see: tschaub/gh-pages#236
I'm also having this issue. You have to manually re-enter the costume domain in the repos settings and in my case turn off force https. |
@ivoilic I was able to resolve this by committing the CNAME file to the branch gg-pages deploys from. |
Thanks. It helps a lot. |
I have the same issue.. |
Where and/or how should I be committing the CNAME to the repo? |
@LeslieOA should be something like (assuming you push to origin):
|
Hey Ryosuke. Thanks. P.S. Nice (Gatsby) site BTW! |
@LeslieOA yep. plaintext with your domain in it. you can see an example in my repo. |
Still having this issue - do you have to commit the CNAME on the |
Ah right, for anyone else having this issue just keep a |
For angular 8. |
For those who use |
…g to gh-pages branch See tschaub/gh-pages#236
Just to add some context to this excellent solution from adamsandle, here's the documentation on the static folder. If it doesn't already exist, you'll need to create a directory called |
I guess you have alreayd figured out the issue that, CNAM file is removed, if you deploy new changed. You need to take backup of the CNAME file and then put it after the build is made. I wrote a shell script for doing this in making this tool MyIps |
Otherwise github unsets the custom domain service on a push the CNAME file in the root publish directory works around that See tschaub/gh-pages#236
Otherwise github unsets the custom domain service on a push the CNAME file in the root publish directory works around that See tschaub/gh-pages#236
- add this with deployment output as per tschaub/gh-pages#236
- add this with deployment output as per tschaub/gh-pages#236 - arc = archive
- add this with deployment output as per tschaub/gh-pages#236
- add this with deployment output as per tschaub/gh-pages#236
- add this with deployment output as per tschaub/gh-pages#236
- add this with deployment output as per tschaub/gh-pages#236
- add this with deployment output as per tschaub/gh-pages#236
- deployment yml file - set checkout submoodule to true so that theme is included CNAME ref: add this with deployment output as per tschaub/gh-pages#236
- deployment yml file - set checkout submoodule to true so that theme is included CNAME ref: add this with deployment output as per tschaub/gh-pages#236
- deployment yml file - set checkout submoodule to true to include theme - actions/checkout: - use traditional tagged version - utilize release configuration CNAME ref: add this with deployment output as per tschaub/gh-pages#236
- deployment yml file - set checkout submoodule to true to include theme - actions/checkout: - use traditional tagged version - utilize release configuration CNAME ref: add this with deployment output as per tschaub/gh-pages#236
- deployment yml file - set checkout submoodule to true to include theme - actions/checkout: - use traditional tagged version - utilize release configuration CNAME ref: add this with deployment output as per tschaub/gh-pages#236
GitHub habitually clobbers CNAME tschaub/gh-pages#236
GitHub habitually clobbers CNAME tschaub/gh-pages#236
@adamsandle thank you so much! You save me!!! |
adding per advice in this thread --> tschaub/gh-pages#236
This is a pretty old thread, but where I found the answer to this question. One hang up I had was the CNAME file I downloaded as an example was converted to a |
…s#236 giteshjha comment
Thank you so much, I've been trying to fix this for 15 minutes and this was the issue. |
I have an issue where each time I use gh-pages to deploy, my custom domain gets deleted. I tried adding a CNAME file to my project with the domain name, but it doesn't change anything. Each deploy I have to manually set the domain again.
I run
gh-pages -d public
when deploying.You can see the project repo here:
https://github.com/whoisryosuke/ryosuke-gatsby-blog
Not sure if this is an issue with my stack (GatsbyJS) or the gh-pages lib.
The text was updated successfully, but these errors were encountered: