Instructions for deploying tDAR:

  1. Check out tDAR from SVN
  2. find and rename all files with a .production template files in src/main/resources and src/main/webapp/includes removing .production
  3. build tDAR with the following command: mvn clean compile war:war -Pproduction 
  4. restart tomcat: sudo service tomcat6 restart
  5. restart apache for good measure: sudo service apache2 restart

SECURITY NOTE: MAVEN should NEVER be TRUSTED with the privileges to run as ROOT.

script for deploying alpha

#!/bin/sh
cd ~/tDAR/
svn update .
mvn clean compile war:war -Palpha
sudo service tomcat6 stop
sudo rm -Rrf ~tdar/app/ROOT
sudo service tomcat6 restart

script for deploying production

#!/bin/sh
cd ~/tDAR/
svn update .
mvn clean compile war:war -Pproduction
sudo service tomcat6 stop
sudo rm -Rrf ~tdar/app/ROOT
sudo service tomcat6 restart

Other Notes