ember-cli-addon-docs icon indicating copy to clipboard operation
ember-cli-addon-docs copied to clipboard

ember deploy production doesn't work with GHE

Open mehulkar opened this issue 6 years ago • 3 comments

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

mehulkar avatar Feb 16 '19 01:02 mehulkar

Looks like it's something out of scope for that particular module:

https://github.com/npm/hosted-git-info/issues/11#issuecomment-287495178

mehulkar avatar Feb 16 '19 01:02 mehulkar

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.

dcyriller avatar Feb 18 '19 15:02 dcyriller

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.

dcyriller avatar Mar 26 '19 21:03 dcyriller