Page 79 - 1005.0169
P. 79

Application Deployment

                   To build the application for deployment, database connection information is required in
                   <source  path  root>/app/uuis/grails-app/conf/DataSource.groovy.    The  default  database
                   type is MySQL, although PostgreSQL could be used with minimal changes. Refer to the
                   Grails documentation for details on specifying database connection drivers.

                   The DataSource.groovy configuration file requires a database username and password on
                   lines  3  and  4.  Alternate  data  sources  for  development  and  production  systems  can  be
                   specified in the DataSource configuration file as well. Refer to the Grails documentation
                   for more details.


                   To  deploy  the  application  type  “grails  war”  from  the  command  line  to  create  a  Web
                   Application  Archive  (WAR)  file.  With  Apache  and  Tomcat  running,  browse  to  the
                   Tomcat server management page and upload the WAR file to deploy it.



















         COMP5541 Tools and Techniques for Software Engineering Winter 2010 by Team 4              Page 79
   74   75   76   77   78   79   80   81   82   83   84