2016-09-22 87 views
0

我正在使用最新的Grails版本(3.1.12)和官方getting started guidecreate-app在当前目录中创建应用程序

我被卡在2.3 Creating an Application

C:\Users\xehpuk\grails-apps>grails 
| Enter a command name to run. Use TAB for completion: 
grails> create-app helloworld 
| Application created at C:\Users\xehpuk\grails-apps 
| Resolving Dependencies. Please wait... 

这些都是C:\Users\xehpuk\grails-apps新内容:

.gitignore 
build 
build.gradle 
gradle 
gradle.properties 
gradlew 
gradlew.bat 
grails-app 
src 

显然,命令create-app会在当前目录,而不是子目录helloworld应用程序,就好像我使用选项--inplace

为什么以及如何改变?

+0

公告称,'创建,app'命令旨在从您的操作系统的命令行运行,而不是来自grails shell。例如'grails create-app helloworld',而不是'grails',然后在shell'create-app helloworld'中。 –

+0

糟糕,你是对的。你想发布这个答案吗? – xehpuk

+0

添加为答案。 –

回答

2

问题是您在Grails shell中使用的命令是create-app,您不应该这样做。

create-app命令应该从您的操作系统的命令行运行这样:

grails create-app helloworld

相关问题