Commits

György Kohut committed bc0d55c

add deploy script

Comments (0)

Files changed (3)

vagrant/backend/README

 VM is Ubuntu Precise, 64 bit, generated by AJC using the scripts at https://github.com/cal/vagrant-ubuntu-precise-64
 
 
-To start the back end for the first time, deploy the modules,
+To start the back end for the first time, the modules must be deployed. Run the script
 
-cd /repo/hbbackend
-asadmin --port 9948 deploy hbbackend/target/modules/org.honeynet.hbbackend.hpfeedsra.rar
-asadmin --port 9948 deploy hbbackend/target/modules/org.honeynet.hbbackend.hpfeeds.jar
+/opt/honeynet/bin/deploy-backend.sh
 
-and watch the logs, that it connects correctly.
+in the VM.
+
+
+It's advisable to watch the logs
 
 /opt/hbbackend/log/hbbackend.log
 /opt/hbbackend/log/hbbackend.hpfeeds.log
 /opt/glassfish3/glassfish/domains/hbbackend/logs/server.log
 
+to see that everything starts up correctly.
 
-If want to re-compile the code, run
 
-$ /opt/honeynet/bin/build_backend.sh
-
-in the VM.

vagrant/puppet/modules/backend/files/opt/honeynet/bin/deploy-backend.sh

+#!/bin/sh -e
+
+cd /repo/hbbackend
+asadmin --port 9948 deploy target/modules/org.honeynet.hbbackend.hpfeedsra.rar
+asadmin --port 9948 deploy target/modules/org.honeynet.hbbackend.hpfeeds.jar
+

vagrant/puppet/modules/backend/files/opt/honeynet/bin/undeploy-backend.sh

+#!/bin/sh -e
+
+asadmin --port 9948 undeploy org.honeynet.hbbackend.hpfeedsra.rar
+asadmin --port 9948 undeploy org.honeynet.hbbackend.hpfeeds.jar
+