将Grails2.1.1应用程序部署到Tomcat作为一场爆发的战争?
我正试图在OpenShift上部署一个Grails应用程序,并试图避免每次更改都在web上推送一个50MB的文件 我在将Grails2.1.1应用程序部署到Tomcat作为一场爆发的战争?,tomcat,grails,deployment,war,openshift,Tomcat,Grails,Deployment,War,Openshift,我正试图在OpenShift上部署一个Grails应用程序,并试图避免每次更改都在web上推送一个50MB的文件 我在~/dev/apps/grails/test上创建了一个项目来测试它 基于此,我补充道 grails.war.exploded=true 到grails app/conf/BuildConfig.groovy,导致创建此文件夹: /home/sas/.grails/2.1.1/projects/test/stage 我如何告诉它在~/dev/apps/grails/test/
~/dev/apps/grails/test
上创建了一个项目来测试它
基于此,我补充道
grails.war.exploded=true
到grails app/conf/BuildConfig.groovy
,导致创建此文件夹:
/home/sas/.grails/2.1.1/projects/test/stage
我如何告诉它在~/dev/apps/grails/test/target/test-0.1
创建爆炸战争?
按如下方式复制文件夹:
cp -r /home/sas/.grails/2.1.1/projects/test/stage ~/dev/tomcat/webapps/test-0.1
工作正常,但我正在尝试自动化整个过程,为OpenShift编写一个快速启动脚本。刚刚查看了grails/scripts/\u GrailsWarPlugin.groovy上的源代码 我不得不补充一句
grails.project.war.exploded.dir = "target/${appName}-${appVersion}"
grails.war.exploded=true
到grails app/conf/BuildConfig.groovy