Skip to content
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

gh-pages deployement with diffetent repo and project name #1362

Closed
dvh91 opened this issue Jul 17, 2016 · 6 comments
Closed

gh-pages deployement with diffetent repo and project name #1362

dvh91 opened this issue Jul 17, 2016 · 6 comments
Labels
effort2: medium (days) P5 The team acknowledges the request but does not plan to address it, it remains open for discussion

Comments

@dvh91
Copy link

dvh91 commented Jul 17, 2016

Mac OSX El Capitan

angular-cli: 1.0.0-beta.8
node: 4.2.4
os: darwin x64

angular cli project name: 'kmeetup'
repo name: 'kmeetups'

run:
ng github-pages:deploy --message "first kmeetup deploy"

got:
Built project successfully. Stored in "dist/".
Deployed! Visit https://dvh91.github.io/kmeetup/

as far as i can tell, the script takes the project name from angular-cli.json project.name
ad it's not necessarily the repo name.

that causes not only the url that printed in ternimal to be wrong but also the base href in index.html to be wrong which fail to load all scripts.

@dvh91 dvh91 changed the title gh-pages deployement with diffetent repo and project name difference gh-pages deployement with diffetent repo and project name Jul 17, 2016
@neilhem
Copy link
Contributor

neilhem commented Jul 18, 2016

Why you use with gh-pages php?

@dvh91
Copy link
Author

dvh91 commented Jul 18, 2016

I dont.
it's a mistake in my bug description.

@filipesilva filipesilva added type: enhancement effort2: medium (days) P5 The team acknowledges the request but does not plan to address it, it remains open for discussion labels Jul 28, 2016
@filipesilva
Copy link
Contributor

This could be improved, yes.

@heyayush
Copy link

For a quick workaround, change the project name in package.json to match your github repository name. Then it will set the correct base href in index.html to load all your scripts.

@filipesilva
Copy link
Contributor

Closed via #4385.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
effort2: medium (days) P5 The team acknowledges the request but does not plan to address it, it remains open for discussion
Projects
None yet
Development

No branches or pull requests

4 participants