Skip to content
Christopher C. Johnson edited this page Oct 3, 2017 · 14 revisions

Where can I see my deployed url? (specific to github pages only)

Go to you repository settings, scroll down to the GitHub Pages section:

Screenshot

My CNAME file is deleted on every publish?! (specific to github pages only)

That's by design, the command overrides everything. If it wouldn't do that, all the hashed bundles would stay, too!

You have to put a CNAME file into your dist folder.

Example:

ng build
echo "my-domain.com" > dist/CNAME
angular-cli-ghpages [OPTIONS]

How can I contribute to angular-cli-ghpages?

git clone https://github.com/angular-buch/angular-cli-ghpages.git
cd angular-cli-ghpages
npm link

npm link is very similar to npm install -g except that instead of downloading the package from the NPM repo, the just cloned angular-cli-ghpages/ folder becomes the global package.

Now you can use ngh via the command line. Please read the official npm-link documentation and the npm-link cheatsheet for more information.

How do I publish to a Root User or Organization Repository?

"If your site is a User or Organization Page that has a repository named <username>.github.io or <orgname>.github.io, you cannot publish your site's source files from different locations. User and Organization Pages that have this type of repository name are only published from the master branch." - GitHub

All this means is that you have to keep your published files in the master branch.

Create a new branch for your source files, source for example, and only work from within that branch.

When you're ready to publish your website specify the master branch by using --branch=master.

Clone this wiki locally