Grails Command Line Reference

这上面的英文很好理解!

描述:
bug-report          (since 0.4) Generates a ZIP containing your source artifacts for attaching to a JIRA issue
clean            (清除当前应用的tmp目录)
create-app   Creates a new Grails application(创建一个新的grails应用)
create-controller  Convenience target for creating a controller(创建一个grails应用的controller)
create-domain-class  Convenience target for creating domain classes
create-data-source  Convenience target for creating data sources
create-job  Convenience target for creating jobs
create-service  Convenience target for creating services
create-taglib  Convenience target for creating tag libraries
create-test-suite  Convenience target for creating test suites
create-webtest  Convenience target for creating functional web tests
generate-controller  Generates a controller for a specified domain class
generate-views  Generates CRUD views for a specified domain class
generate-all  Generates both a controller and the views for a specified domain class
get-dependencies  Get project's dependencies with Ivy
install-ivy  Install ivy dependency resolution tool
install-templates  Installs the artifact and scaffolding templates
run-app  Runs a grails app using the default Jetty container. The default http port is 8080. This can be customised by appending -Dserver.port=<port number> to the command line
run-app-https  (since 0.6) Runs a grails app using the default Jetty container with a https listener. The default https port is 8443. This can be customised by appending -Dserver.port.https=<port number> to the command line
run-webtest  Runs the functional web tests contained within the app
set-version  (since 0.5) Set the version of your application, i.e. grails set-version 1.0.4
stats        (since 0.5) Output some basic code metrics about your project
test-app  Runs the unit tests contained within the app, or a single named test passed as the last argument
war          Creates a JEE Web Application Archive (WAR) file from the current grails app
upgrade  Upgrade/Downgrade an existing project to a different Grails version

 

Options can be given in the format -Dname=value
name  value
server.port  the port number to start the server on, default:8080
grails.upgrade.warning  set if user input is require or not while upgrading a project, default:y

如:grails -Dserver.port=9090 run-app,表示以9090端口运行这个应用

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值