Friday, May 23, 2014

To deploy grails WAR file on your local computer

You need following :

-tomcat (i used ->apache-tomcat-7.0.42)

So here are the steps you need to follow::

1. In config.groovy change your setting on production environment

             production {
                                grails.logging.jul.usebridge = true
                                grails.serverURL = "http://localhost:8080/pms"

                              }

2. In dataSource.groovy comment all you have in production environment and copy all from development environment and paste to production environment.

             

3. Now you have to create war file . look at this screenshot
4. After WAR file is build copy the file from target  folder and paste it to
                                        C:\tomcat\apache-tomcat-7.0.42\webapps

5. Now go to cmd prompt and go to bin of apche tomcat server.

                          -> bin / catalina.bat run

6. This will run your application . now go to browser and browse 

                            localhost:8080/applicationName

Simple !!! isn't it :) 
.

1 comment:

  1. WOW you are my hero i think u r genius it solved my very old problem wow my hero

    ReplyDelete