![]() ![]() We can see the hosted corresponding site at the following link: The refers to our GitHub username and refers to the name of the repository created on GitHub. Once this command finishes running, check the files in the repository using: We don’t have to manually build or commit those files. Here, the deploy command does all the work. ![]() The deploy command is simple, and we must add a base-href argument with the name of the repository in it: ng deploy -base-href=/angular-app/ Inside the sample folder, add the angular-cli-ghpages package using the following command: ng add angular-cli-ghpages Read Now Deploying using angular-cli-ghpages Replace the tag with the name of the repository to be created. Replace the tag with your GitHub account username. Give the repository a name and give it public accessibility.Īlthough Git initiates a repository, we must add a remote origin using the following command: git remote add origin /.git ![]() Sign in to GitHub and then create a new repository by clicking the New button or using this link. Setting up a GitHub repoīefore building the Angular app, let’s set up the GitHub repository.
0 Comments
Leave a Reply. |