diff --git a/build/compile-java b/build/compile-java new file mode 100755 index 0000000..b158bfd --- /dev/null +++ b/build/compile-java @@ -0,0 +1 @@ +cd ../java && ./build-java-projects diff --git a/deploy/dev-server-deploy b/deploy/dev-server-deploy index cc5409a..32ce115 100755 --- a/deploy/dev-server-deploy +++ b/deploy/dev-server-deploy @@ -1,6 +1,6 @@ if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi -source ../config.hosts +source ./config.hosts server=$M_HOST_DEV echo stopping... diff --git a/deploy/dev-tomcat-restart b/deploy/dev-tomcat-restart index 10eed8a..8b46fdb 100755 --- a/deploy/dev-tomcat-restart +++ b/deploy/dev-tomcat-restart @@ -1,5 +1,5 @@ -source ../config.hosts +source ./config.hosts server=$M_HOST_DEV echo restarting... diff --git a/deploy/dev-watch b/deploy/dev-watch index e5fa021..a427620 100755 --- a/deploy/dev-watch +++ b/deploy/dev-watch @@ -1,6 +1,6 @@ if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi -source ../config.hosts +source ./config.hosts server=$M_HOST_DEV ssh $1@$server "tail -n 100 -f run.log" diff --git a/deploy/dev-web-deploy b/deploy/dev-web-deploy index af4b9c1..8e53368 100755 --- a/deploy/dev-web-deploy +++ b/deploy/dev-web-deploy @@ -1,2 +1,2 @@ -rsync -avL --exclude="WEB-INF" --delete ../gwt/war/ tprepscius@red:www/ +rsync -avL --exclude="WEB-INF" --delete ../gwt/war/ red:www/ diff --git a/deploy/host.config b/deploy/host.config new file mode 100644 index 0000000..6574649 --- /dev/null +++ b/deploy/host.config @@ -0,0 +1,2 @@ +M_HOST_PROD="your-prod" +M_HOST_DEV="ec2-54-234-177-43.compute-1.amazonaws.com" diff --git a/deploy/server-deploy b/deploy/server-deploy index ea4d2ec..b44aeb4 100755 --- a/deploy/server-deploy +++ b/deploy/server-deploy @@ -1,6 +1,6 @@ if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi -source ../config.hosts +source ./config.hosts server=$M_HOST_PROD echo stopping... diff --git a/deploy/server-restart b/deploy/server-restart index 2d354ab..1393ba2 100755 --- a/deploy/server-restart +++ b/deploy/server-restart @@ -1,6 +1,6 @@ if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi -source ../config.hosts +source ./config.hosts server=$M_HOST_PROD echo stopping... diff --git a/deploy/server-shutdown b/deploy/server-shutdown index f618532..692d3dc 100755 --- a/deploy/server-shutdown +++ b/deploy/server-shutdown @@ -1,6 +1,6 @@ if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi -source ../config.hosts +source ./config.hosts server=$M_HOST_PROD echo stopping... diff --git a/deploy/tomcat-restart b/deploy/tomcat-restart index 1cd6017..a536459 100755 --- a/deploy/tomcat-restart +++ b/deploy/tomcat-restart @@ -1,5 +1,5 @@ -source ../config.hosts +source ./config.hosts server=$M_HOST_PROD echo restarting... diff --git a/deploy/watch b/deploy/watch index 5339267..9565a5c 100755 --- a/deploy/watch +++ b/deploy/watch @@ -1,5 +1,6 @@ if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi -server="blue" +source ./hosts.config +server=$M_HOST_PROD ssh $1@$server "tail -n 100 -f run.log" diff --git a/host.config b/host.config deleted file mode 100644 index 039cb2c..0000000 --- a/host.config +++ /dev/null @@ -1,3 +0,0 @@ -M_ROOT="ubuntu" -M_HOST_PROD="your-prod-host" -M_HOST_DEV="your-dev-host" diff --git a/passwords/make b/passwords/make new file mode 100755 index 0000000..4ffa879 --- /dev/null +++ b/passwords/make @@ -0,0 +1,8 @@ +echo `./make-single-password` > captcha +echo `./make-single-password` > james +echo `./make-single-password` > mail +echo `./make-single-password` > mail-pbe +echo `./make-single-password` > mail_extra +echo `./make-single-password` > push-certificate + + diff --git a/passwords/make-single-password b/passwords/make-single-password new file mode 100755 index 0000000..4edee57 --- /dev/null +++ b/passwords/make-single-password @@ -0,0 +1,2 @@ +LC_CTYPE=C tr -dc A-Za-z0-9_\!\@\#\$\%\^\&\*\+ < /dev/urandom | fold -w 12| head -n 4 | grep -i '[!@#$%^&*()_+{}|:<>?=]' | head -n 1 +