What to do with a build "dist" folder

10,560

Yes! Upload the contents of the dist folder to your webserver to host it live. This step where you take your finished, built project and send it to the server is often called "deployment".

Depending on where you host your site you may have command line tools available to make deploying your app just as easy as building it (for example, upload to an Amazon S3 bucket with AWS command line tools, firebase deploy with firebase-tools, and even the Angular CLI can deploy to Github's gh-pages with ng github-pages:deploy)

Share:
10,560

Related videos on Youtube

TanguyB
Author by

TanguyB

Gamer and Programmer at your Service !

Updated on June 07, 2022

Comments

  • TanguyB
    TanguyB almost 2 years

    So I finished a very small angular2 project, and build it trough angular-cli with the command "ng build --prod".

    I get a "dist" folder out of this. But what should I do with this dist folder in order to make it run ? Publish it to a server ?

    Regards.