結構メモリを使うのでLinuxの1GB程度のマシンだと厳しい。DBもインメモリのH2を利用。
root grails-app
ドメインクラスを作成すると、テスト環境ではH2データベースにテーブルが作成される!
grails> create-domain-class book | Created grails-app/domain/sample/Book.groovy | Created src/test/groovy/sample/BookSpec.groov grails> generate-all sample.Book | Rendered template Spec.groovy to destination src\test\groovy\sample\BookControllerSpec.groovy | Rendered template edit.gsp to destination grails-app\views\book\edit.gsp | Rendered template create.gsp to destination grails-app\views\book\create.gsp | Rendered template index.gsp to destination grails-app\views\book\index.gsp | Rendered template show.gsp to destination grails-app\views\book\show.gsp | Scaffolding completed for grails-app\domain\sample\Book.groovy
runtime 'mysql:mysql-connector-java:5.1.36' runtime 'org.postgresql:postgresql:9.4-1201-jdbc41'
dataSource: pooled: true jmxExport: true driverClassName: com.mysql.jdbc.Driver or org.postgresql.Driver username: sa password: environments: development: dataSource: dbCreate: create-drop url: jdbc:mysql://localhost/testdb or jdbc:postgresql://localhost/testdb