Best practice for compilation / deployment

Hi all, just wanted to know if it’s better to compile the source code in an dev or test environment, then to deploy the .war file in production…or if we can compile as well in production and put the .war file in tomcat directly after…
Thanks for your answers…

You’d better compiling off-site, this will avoid to pull all gradle dependencies on you production machine

1 « J'aime »

thanks ! will follow your advice