A
A
Artyom Dadashchyants2021-02-27 11:41:12
Angular
Artyom Dadashchyants, 2021-02-27 11:41:12

How to compile an Angular application so that I can upload it to hosting?

I have a ready-made application that is easily collected in dist. How can I compile the application into a folder, which can then be uploaded to the hosting? Previously, the project was deployed on Firebase, and there were no problems, but since the customer asked to upload it to his domain, I just got into a stupor, as it turned out that I didn’t know how to do it. On the firebase it is possible to connect a domain, but the one that was bought in advance could not be connected. Please help, I will be very grateful!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LastDragon, 2021-02-27
@LastDragon

ng build --prod
and
--deploy-url- the directory where the scripts will be located (needed if index.html is transferred)
--base-href- the base url
after that you can upload what will be in dist/app to the server
See https://angular.io/cli/build

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question