Skip to content

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

Closed

Description

@dvh91

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.

Activity

  1. changed the title [-]gh-pages deployement with diffetent repo and project name difference[/-] [+]gh-pages deployement with diffetent repo and project name[/+] on Jul 17, 2016
  2. neilhem commented on Jul 18, 2016

    @neilhem
    Contributor

    Why you use with gh-pages php?

  3. dvh91 commented on Jul 18, 2016

    @dvh91
    Author

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

  4. filipesilva commented on Jul 28, 2016

    @filipesilva
    Contributor

    This could be improved, yes.

  5. heyayush commented on Oct 15, 2016

    @heyayush

    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.

  6. filipesilva commented on Feb 3, 2017

    @filipesilva
    Contributor

    Closed via #4385.

  7. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot

    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.

  8. locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussioneffort2: medium (days)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions