Grails 3.2.9 Angular Profile: Deploy all to a war?

163 views
Skip to first unread message

Nathan Dunn

unread,
May 11, 2017, 3:12:09 PM5/11/17
to Grails Dev Discuss

I love the new angular profile with Grails 3.2.X, but was wondering what the preferred method of deployment into a war file was.  

I can copy stuff from the client/dist directory to the various parts of the server directory.  I was wondering what folks preferred method for doing this might be (I'm sure the method is the same for react or angular1).  

Thank you.

Nathan Dunn

unread,
May 11, 2017, 6:32:19 PM5/11/17
to Grails Dev Discuss

Christoph Langer

unread,
Mar 20, 2018, 6:56:48 AM3/20/18
to Grails Dev Discuss
I found a different approach i use for grails2 till now to deploy several html projects (angular projects) to one appserver
if you add this to the build.gradle of the server the client will be included. however you have to make sure that it is built correct before.

war {
from '../client/dist'
}

this keeps the benefits of having 2 directories and client and server separated
Reply all
Reply to author
Forward
0 new messages