Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  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

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

...

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

...