• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
Build Application With Grails
 
Installation For Linux1.Download and unzip grails.zip from the Grails site:www.grails.organd extract into/opt/grails2.Set GRAILS_HOME environment variables into above installation directory, by using thisconsole command : $ export GRAILS_HOME=/opt/grails;3.Add to $GRAILS_HOME/bin to the path, the command is : export PATH=$PATH:/opt/grails4.run : “grails help”, if installation was success. It will grails help commandInstallation For Windows1.Download and unzip grails.zip from the Grails site:www.grails.organd extract it toC:\grails 2.Set GRAILS_HOME environment variables into above installation directory, open theRight Click My Computer->System properties ->Environment variables3.Add to GRAILS_HOME/bin to the path, the way to add in is the same as above.4.run grails help, if installation was success. It will grails help commandcreate application “MyCourses”1.In project directory , type grails create-app MyCourses2.It will generate folder Mycourses
 
3.If you want to change the database you can edit datasource.groovy in the folder ../grails-app/conf Datasource.groovydataSource { pooled = truedriverClassName = "org.hsqldb.jdbcDriver"username = "sa" password = ""}hibernate {cache.use_second_level_cache=truecache.use_query_cache=truecache.provider_class='com.opensymphony.oscache.hibernate.OSCacheProvider'}// environment specific settingsenvironments {development {dataSource {dbCreate = "create-drop" // one of 'create', 'create-drop','update'url = "jdbc:hsqldb:mem:devDB"}
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...