-
Notifications
You must be signed in to change notification settings - Fork 99
[feature request] CNAME file for custom domains is replaced #7
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
Comments
That's by design, it overrides everything. You have to put a |
It might be intended, but it really seems like bad design. I didnt expect to have to do that since ng gh-pages didnt delete that file either. Maybe its worth discussing this again internally, or rethinking it. |
Yeah, we have to see. I will keep that issue open for a while, to see other peoples opinion on that issue. What do you think about a |
A command line option would be enough for me. |
That's easy. |
I don't think I have the necessary know-how to do it, but I might look into it sometime. |
I ended up making an extra build step in my Travis CI config. I added a
This works fine, but a command line option would be nice! |
I will add this command ( |
Hi there, just wondering did this make it into v0.5.1? |
No, now it's planned for |
I don't see PS D:\Sources\Wangkanai\Wangkanai> ngh --version
0.5.2
PS D:\Sources\Wangkanai\Wangkanai> ngh --branch=master --cname=wangkanai.com
error: unknown option `--cname'
|
Shame on me, still not implemented... |
For Windows, I just made an NPM script in my package.json as the following The & is how you separate commands on the same line in Powershell CNAME is just a file with your custom URL in it and that is it. Like "example.com" |
Another way to get the CNAME file in place is by creating the file |
okokok... i will move this very much up on my free-open-source-work list! 😉 |
Here's what my deploy script looks like to workaround this: https://github.com/alexjlockwood/ShapeShifter/blob/master/package.json#L16
|
@beeman wow. I don't know how I didn't think about that |
I've submitted a PR (#42) for review, to address this Feature Request. Tested locally, any feedback would be welcome. |
Many thanks for the great work! I will take a closer look this weekend! 👍 |
@beeman Thank you |
Good stuff you guys @bdavies @JohannesHoppe |
as explained in angular-schule/ngx-deploy-starter#7 (comment) by @dianjuar fixes #7
If your github pages project is deployed on a custom domain, ngh overwrites this file and it has to be recreated after every push.
The text was updated successfully, but these errors were encountered: