How to Deploy the Application

Set up Environment

The application was developed in, and is most easily built from the Eclipse IDE enviornment ( http://eclipse.org) with the Subclipse Subversion plugin ( http://subclipse.tigris.org/).

To set up the correct environment, use Eclipse to create a project by checking out the code from the svn repository. The name of the project must be EPGL_SMS.

How to Deploy

To configure the application for deployment, edit the following constants in the com.dimagi.epgl.common.Constants class:

  • LOG_FILE
    • The full path and name of the file the webapp will use to log information. (Must be writable by Tomcat)
  • GDATA_USER
    • Google Data username
  • GDATA_PASS
    • Google Data password

Once finished editing, save the changes, and Eclipse will automatically recompile the classes. Now copy the contents of the WebContent folder to the public_html folder on DailyRazor. If in a shared Tomcat environment, you may have to submit a ticket to restart Tomcat.

How to Deploy on Local Machine

For ease of development, an ant build script is also included to locally install or refresh the application on a local machine. During development, this script was run from Eclipse. To configure the script, set the appropriate properties in build.xml for the tomcat home directory and tomcat manager. Running the install target is only necessary the first time the application is installed on the local machine. For subsequent updates, use the refresh target.

Back to Overview