Home How to package and deploy Grails 3.3.2 Angular project in tomcat
Reply: 1

How to package and deploy Grails 3.3.2 Angular project in tomcat

sfgroups
1#
sfgroups Published in 2017-11-30 01:47:54Z

I created sample Grails Angular project. When I run a gradlew war it packages only server-side code, its not adding the client-side code. What is the proper way to package and deploy this project?

./gradlew war
Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for details
:server:compileJava NO-SOURCE
:server:compileGroovy UP-TO-DATE
:server:buildProperties UP-TO-DATE
:server:processResources
:server:classes
:server:compileGsonViews
:server:war

BUILD SUCCESSFUL

Total time: 17.307 secs
James Kleeh
2#
James Kleeh Reply to 2017-11-30 15:57:53Z

The main benefit of having separate projects (client/server) is the ability to deploy them separately. If you want to deploy them together, then they should be in the same project. See this guide on how to merge them together.

http://guides.grails.org/angular2-combined/guide/index.html

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.316575 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO