...
- Check out tDAR from SVN
- find and rename all files with a .production template files in src/main/resources and src/main/webapp/includes removing .production
- build tDAR with the following command: mvn clean compile war:war -Pproduction
- restart tomcat: sudo service tomcat6 restart
- 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 | ||||
---|---|---|---|---|
| ||||
#!/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 | ||||
---|---|---|---|---|
| ||||
#!/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 |
...