Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you redeploy javascript in Idea when using a Tomcat configuration

I'm working on a java/javascript webapp that runs on tomcat.

We're working with IDEA and I've managed to get debugging set up for both the client and server code at the same time, which is great. I did have hot redeployment of the javascript set up when running Tomcat manually, however I find when running Tomcat through IDEA this doesnt work as it's setting stuff up somewhere in my users folder.

I was going to just set up a deployment configuration to go to that folder but I can't see any of the javascript files in there.

Is it possible to get the best of both worlds and have debugging and automatic deployment working together?

Update

Here's my config:

I'm using maven to build a specific profile rather than using 'build war exploded'. I suspect the latter wont work to build as quite a lot of custom properties need supplying by maven at compile time.

I also now have war exploded set in start up in deployment.

enter image description here

like image 988
JonnyRaa Avatar asked Feb 24 '26 13:02

JonnyRaa


1 Answers

In Run - >Edit Configurations -> select tomcat instance.

then on update action : restart option

and in deployment tab instead of war use war exploded.

Now click on green button for run project it will ask option then select update resources and ok then refresh your page it will show change.

Keep one thing in mind that clear the cache.

Here is a screenshot :

enter image description here

like image 163
user3145373 ツ Avatar answered Feb 26 '26 02:02

user3145373 ツ