Be sure to build to get the necessary files in dist.
ng build --prod
First get all the relevant files from the Dist folder of your application
for me it was css files in the resources folder main.bundle.js polyfills.bundle.js vendor.bundle.js
Then click these files in the repo you created.
1 - If you want the application to run in the root directory - create a special repo named [yourgithubusername] .imtqy.com and run these files in the main branch
2 - If you want to create this page in a subdirectory of a marriage other than the root, create the gh-pages branches and paste these files into this branch.
In both cases, the way to access these expanded pages will be different.
In the first case it will be https: // [yourgithubusername] .imtqy.com , and in the second case it will be [yourgithubusername] .imtqy.com / [Repo name].
If it is assumed that you want to deploy it using the second case, be sure to change the base url pf in the index.html file to dist, since all route mappings depend on the path you specify and should be set to [/ branchname].
Github repository - https://github.com/rahulrsingh09/Deployment
Rahul singh
source share