ember-cli-addon-docs
ember-cli-addon-docs copied to clipboard
ember deploy production doesn't work with GHE
I wasn't able to run ember deploy production when my repository is set to a Github Enterprise URL. I traced it down to the hosted-git-info, and I think it's becuase it defines a set of known github instances and doesn't recognize anything else:
https://github.com/npm/hosted-git-info/blob/latest/git-host-info.js
Looks like it's something out of scope for that particular module:
https://github.com/npm/hosted-git-info/issues/11#issuecomment-287495178
I face the same issue with Gitlab Entrerprise. There is this workaround where I tweak https://github.com/ember-learn/ember-cli-addon-docs/blob/master/lib/deploy/plugin.js#L184. But how could we provide a more permanent solution? 🤔 I'm ready to work on this.
Ok, good news is: it's supported through a bit of ember-cli-deploy-git config.
In your addon's config/deploy.js, you'll want to add this line:
ENV.git = { repo: `git@gitlab.${custom-domain}:${orga-name}/${project-name}.git' }
I'll open a PR to update the doc.