Deploy my angular project to git.

Hello there,

I am trying to deploy my angular project to git.

I use: ng build --prod --base-href “https://urigross.github.io/urigrossltdWebsite/

It creates New folder: dist\urigrossltd

First Question: Is new folder name :“urigrossltd” okeay (“urigrossltdWebsite” folder name is repo in git) ?

After that I use: ngh --dir dist/urigrossltd.

It gives error:  “Unspecified error (run without silent option for detail)”

So I use: ngh --dir --no-silent dist/urigrossltd

Errors output:

ndex.html could not be copied to 404.html. This does not look like an angular-cli project?!
(Hint: are you sure that you have setup the directory correctly?)
Diagnostic info: ENOENT: no such file or directory, stat ‘C:\web development\projects\frontend current backup 8 - Copy\urigrossltdWebsite–no-silent\index.html’
�‍� Uploading via git, please wait…
:x: An error occurred when trying to deploy:
ENOENT: no such file or directory, stat ‘C:\web development\projects\frontend current backup 8 - Copy\urigrossltdWebsite–no-silent’

I know 404.html was not there on ng build command.

How do I contunue from here? 

Appreciate any help !

format code properly, check for errors in pasted text. this is hard to read.

edit post. and select ‘insert code’ option, then enter code in window that pops up. preview to check. example ->

nfs list

After that I use: ngh --dir dist/urigrossltd.

It gives error:  “Unspecified error (run without silent option for detail)”

So I use: ngh --dir --no-silent dist/urigrossltd

Use below command:

ngh -no-silent --dir dist/urigrossltd

Hello there,
I copied all my project code to a new angular project.
I did the following commands from the terminal on the project folder:
npm i -g angular-cli-ghpages
ng build --prod --base-href “https://urigross.github.io/urigrossltdWebsite
angular-cli-ghpages

Well I don’t know what those commands means I just know that the first one created a branch called ghpages. the second , I think it pushed the project into that branch.
The third - I don’t know what is it.

My problem: I see error404 on the webpage : https://urigross.github.io/urigrossltdWebsite
When I saw the ghpages branch - I saw that I have on the main directory a folder called “urigrossltdWebsite” and inside it I have the project folder that I think should be in the main directory.

see it at: https://github.com/urigross/urigrossltdWebsite/tree/gh-pages

How do I fix it that I could see my webpage ?

Thank you.

I just use sudo and it worked.
sudo angular-cli-ghpages --dir=dist/urigrossltd