我有一个使用React配置文件的简单Grails-React应用程序,该应用程序在本地运行良好,但是在部署到Heroku时,GraphQL插件没有加载问题,它使用:
代码在这里:https://github.com/wellsst/grails3-react-diceware
使用server:bootRun
和heroku local -f ProcfileLocal
在本地运行,日志条目出现:
INFO --- [ main] g.plugins.DefaultGrailsPluginManager : Grails plug-in [gormGraphql] with version [1.0.3.BUILD-SNAPSHOT] loaded successfully
但是在Heroku上,没有显示任何错误,也没有显示GraphQL的任何日志记录。
点击“应用程序”控制器,我看不到GraphQL,只有一个控制器:
{"message":"Welcome to Grails!","environment":"production","appversion":"1","grailsversion":"3.3.10","appprofile":"react","groovyversion":"2.4.17","jvmversion":"1.8.0_222-heroku","reloadingagentenabled":false,"artefacts":{"controllers":1,"domains":1,"services":0},"controllers":[{"name":"grails3.react.diceware.ApplicationController","logicalPropertyName":"application"}],"plugins":[{"name":"i18n","version":"3.3.10"},{"name":"dataBinding","version":"3.3.10"},{"name":"restResponder","version":"3.3.10"},{"name":"jsonView","version":"1.2.9"},{"name":"eventBus","version":"3.3.2"},{"name":"core","version":"3.3.10"},{"name":"dataSource","version":"3.3.10"},{"name":"codecs","version":"3.3.10"},{"name":"controllers","version":"3.3.10"},{"name":"urlMappings","version":"3.3.10"},{"name":"mimeTypes","version":"3.3.10"},{"name":"domainClass","version":"3.3.10"},{"name":"converters","version":"3.3.10"},{"name":"controllersAsync","version":"3.3.2"},{"name":"hibernate","version":"6.1.12"},{"name":"services","version":"3.3.10"},{"name":"interceptors","version":"3.3.10"},{"name":"cache","version":"4.0.1"}]}
我怀疑这是Heroku上gradle的版本或有关GraphQL插件配置方式的信息。想法?
答案 0 :(得分:0)
我对此的犹豫是将其部署到Cloud Foundry,没有问题。我怀疑它围绕gradle的不同版本(本地与远程)