Reputation: 45
I am new to Angular(1 or 2). I have built a small application using Angular-cli and running on NodeJs. But my production env is using Tomcat. Is there a way to do it without making lots of changes in my project?
Upvotes: 1
Views: 596
Reputation: 45
I see many people asking for the answer. Here are the steps which are working now.
ng build --prod
<base href="/">
to <base href=".">
Upvotes: 0
Reputation: 3575
Yes, Angular project is just JavaScript/TypeScript and HTML. You can deploy it on any web server by simply coping the files. Or you can use something like WebPack to minify/bundle everything into single JavaScript and HTML files, and copy that to your web server.
Upvotes: 2