【问题标题】:grails-3.3.9 on windows doesn't have run-app commandWindows 上的 grails-3.3.9 没有 run-app 命令
【发布时间】:2019-01-13 16:48:39
【问题描述】:

我今天安装了 grails-3.3.9 pn windows 10(我还从 Oracle 1.8.0_191 安装了 JDK)。 当我输入“grails create-app hello”时,命令成功完成。 当我输入“grails run-app”时,grails 会给出以下消息: C:\Users\U1>grails 运行应用程序 用法: 创建应用 [NAME] --profile=web create-plugin [NAME] --profile=web-plugin

|可用配置文件

  • angular - 使用 Angular 5+ 创建 Grails 应用程序的配置文件
  • rest-api - REST API 应用程序配置文件
  • base - 由其他配置文件扩展的基本配置文件
  • angularjs - 使用 AngularJS 创建应用程序的配置文件
  • plugin - 适用于所有配置文件的插件配置文件
  • profile - 用于创建新 Grails 配置文件的配置文件
  • react - 使用 React 前端创建 Grails 应用程序的配置文件
  • react-webpack - 使用 Webpack 创建带有 React 前端的 Grails 应用程序的配置文件
  • webpack - 使用 webpack 2 创建具有基于节点的前端的应用程序的配置文件
  • web - Web 应用程序配置文件
  • rest-api-plugin - REST API 插件配置文件
  • vue - 使用 Vue.js 前端创建 Grails 应用程序的配置文件
  • web-jboss7 - 用于创建 JBoss 7.1 EAP 项目的配置文件
  • web-plugin - 为 Web 应用程序设计的插件配置文件

输入“grails help”或“grails -h”以获取更多信息。

C:\Users\U1>grails -version | Grails 版本:3.3.9

| JVM版本:1.8.0_191

我再次从该站点下载了该软件包并重新安装,但问题仍然存在。 知道是什么问题吗?

【问题讨论】:

    标签: grails


    【解决方案1】:

    要运行应用程序,您需要与 grails 应用程序位于同一文件夹中。 cd hello 然后grails run-app

    【讨论】:

    • 谢谢!完美运行
    • 太好了,很高兴它成功了。你可以接受答案,我会得到一些虚假的互联网积分。欢迎来到堆栈溢出 :)
    【解决方案2】:

    只要 Grails 应用本质上是一个基于 Gradle 的项目,您就应该在 Win10 的 cmd 中运行:

    >gradlew.bat bootRun
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-04-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-29
      相关资源
      最近更新 更多