You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-10Lines changed: 5 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,23 +81,18 @@ If you already have an existing Angular project on GitHub, skip steps 1 and 2.
81
81
- Please enter the URL `https://github.com/<username>/<repositoryname>.git` into your browser – you should see your existing repository on GitHub.
82
82
- Please double-check that you have the necessary rights to make changes to the given project!
83
83
84
-
3. Add `angular-cli-ghpages` to your project. For details, see the [installation section](#installation).
84
+
3. Add `angular-cli-ghpages` to your project. When you run `ng deploy` for the first time, the Angular CLI will prompt you to choose a deployment target – select **angular-cli-ghpages** from the list:
85
85
86
86
```sh
87
-
ng add angular-cli-ghpages
87
+
ng deploy
88
88
```
89
89
90
-
4. Deploy your project to GitHub pages with all default settings.
91
-
Your project will be automatically built in production mode.
90
+
Alternatively, you can install it directly via `ng add angular-cli-ghpages`. See the [installation section](#installation) for details.
92
91
93
-
```sh
94
-
ng deploy --base-href=/<repositoryname>/
95
-
```
96
-
97
-
Which is the same as:
92
+
4. Deploy your project to GitHub Pages with all default settings. Your project will be automatically built in production mode.
98
93
99
94
```sh
100
-
ng deploy your-angular-project --base-href=/<repositoryname>/
95
+
ng deploy --base-href=/<repositoryname>/
101
96
```
102
97
103
98
Please be aware of the `--base-href` option. It is necessary when your project will be deployed to a non-root folder. See more details below.
0 commit comments