Bas
Bas

Reputation: 2400

Angular 2 / angular-cli: How to deploy on a webserver

What software do I need on the Web server to Angular 2 app to get it working? Or I can just upload the files to the web server?

Upvotes: 0

Views: 272

Answers (2)

sigit_prayoga
sigit_prayoga

Reputation: 121

Do you use angular-cli? (I'd recommend you to use it if you haven't). Because you just can do this command on your terminal

ng build -prod --output-path=path/to/home/of/web/server/

What it does, it builds your app and generate dist folder, in this case because you specified the output, it directly generate the dist content inside the path.

Hope it helps.

Upvotes: 1

Bills
Bills

Reputation: 798

Yes, just upload files. Angular is a JavaScripts framework that runs on web browser.Just make sure your all TyperScipt files are complied in JavaScript.

Upvotes: 0

Related Questions