TanguyB
TanguyB

Reputation: 2006

What to do with a build "dist" folder

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.

Upvotes: 5

Views: 12491

Answers (1)

Jim
Jim

Reputation: 4172

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)

Upvotes: 4

Related Questions