# How to deploy IonicAPP on Tomcat server?

**URL:** <https://forum.ionicframework.com/t/how-to-deploy-ionicapp-on-tomcat-server/37310>\
**Category:** uncategorized\
**Created:** [November 18, 2015, 7:31am UTC](https://forum.ionicframework.com/t/how-to-deploy-ionicapp-on-tomcat-server/37310 "2015-11-18T07:31:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit1810](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Amit1810](https://forum.ionicframework.com/u/Amit1810)\
**Post date:** [November 18, 2015, 7:31am UTC](https://forum.ionicframework.com/t/how-to-deploy-ionicapp-on-tomcat-server/37310/1 "2015-11-18T07:31:29Z")

</div>

I am new to Ionic so please guide me the steps to follow to deploy it on tomcat server.

---

<div class="post-metadata">

**Author:** ![gmarziou](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gmarziou/32/13327_2.png) [@gmarziou](https://forum.ionicframework.com/u/gmarziou)\
**Post date:** [November 18, 2015, 1:45pm UTC](https://forum.ionicframework.com/t/how-to-deploy-ionicapp-on-tomcat-server/37310/2 "2015-11-18T13:45:40Z")

</div>

This does not make sense unless you build a web app rather than a mobile app.

---

<div class="post-metadata">

**Author:** ![Amit1810](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Amit1810](https://forum.ionicframework.com/u/Amit1810)\
**Post date:** [November 19, 2015, 5:43am UTC](https://forum.ionicframework.com/t/how-to-deploy-ionicapp-on-tomcat-server/37310/3 "2015-11-19T05:43:28Z")

</div>

Do u mean to say that we cannot use Tomcat server for IONIC APPS

---

<div class="post-metadata">

**Author:** ![gmarziou](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gmarziou/32/13327_2.png) [@gmarziou](https://forum.ionicframework.com/u/gmarziou)\
**Post date:** [November 19, 2015, 10:44am UTC](https://forum.ionicframework.com/t/how-to-deploy-ionicapp-on-tomcat-server/37310/4 "2015-11-19T10:44:50Z")

</div>

No, I mean that when you build an ionic mobile app, the app is not deployed into Tomcat, it is packaged and uploaded to the AppStore or Google Play.  
You can use Tomcat to deploy a java webapp to expose a JSON REST API that will be consumed by your Ionic app but this webapp has no dependency on Ionic.

---

<div class="post-metadata">

**Author:** ![Amit1810](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Amit1810](https://forum.ionicframework.com/u/Amit1810)\
**Post date:** [November 20, 2015, 10:21am UTC](https://forum.ionicframework.com/t/how-to-deploy-ionicapp-on-tomcat-server/37310/5 "2015-11-20T10:21:45Z")

</div>

Thank you soo much 🙂

---

<div class="post-metadata">

**Author:** ![nagkumar0](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nagkumar0/32/137926_2.png) [@nagkumar0](https://forum.ionicframework.com/u/nagkumar0)\
**Post date:** [August 23, 2021, 8:59am UTC](https://forum.ionicframework.com/t/how-to-deploy-ionicapp-on-tomcat-server/37310/6 "2021-08-23T08:59:06Z")

</div>

As ionic supports even browser rendering, one may need to deploy the ionic app as normal webapp or any html web server such as iis, httpd or ngnix etc in such case these are the steps required.

In ionic 5, you can build for any web server using the command

```auto
npm run build --prod

```

OR

`ionic build --prod -generateSourceMap false`

and copy the generated www folder as ROOT (removed existing ROOT folder) in folder E:\apache-tomcat-10.0.10\webapps

then visit  
[http://localhost:8080/](http://localhost:8080/)
