2016-09-22 48 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

相關問題