changes the host config to be in the deploy directory don't need it for install, also adds a make for the password files

This commit is contained in:
Timothy Prepscius 2013-08-18 13:56:13 -04:00
parent 77db4f4f2d
commit b3e71b26fd
14 changed files with 23 additions and 12 deletions

1
build/compile-java Executable file
View File

@ -0,0 +1 @@
cd ../java && ./build-java-projects

View File

@ -1,6 +1,6 @@
if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi
source ../config.hosts source ./config.hosts
server=$M_HOST_DEV server=$M_HOST_DEV
echo stopping... echo stopping...

View File

@ -1,5 +1,5 @@
source ../config.hosts source ./config.hosts
server=$M_HOST_DEV server=$M_HOST_DEV
echo restarting... echo restarting...

View File

@ -1,6 +1,6 @@
if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi
source ../config.hosts source ./config.hosts
server=$M_HOST_DEV server=$M_HOST_DEV
ssh $1@$server "tail -n 100 -f run.log" ssh $1@$server "tail -n 100 -f run.log"

View File

@ -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/

2
deploy/host.config Normal file
View File

@ -0,0 +1,2 @@
M_HOST_PROD="your-prod"
M_HOST_DEV="ec2-54-234-177-43.compute-1.amazonaws.com"

View File

@ -1,6 +1,6 @@
if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi
source ../config.hosts source ./config.hosts
server=$M_HOST_PROD server=$M_HOST_PROD
echo stopping... echo stopping...

View File

@ -1,6 +1,6 @@
if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi
source ../config.hosts source ./config.hosts
server=$M_HOST_PROD server=$M_HOST_PROD
echo stopping... echo stopping...

View File

@ -1,6 +1,6 @@
if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi
source ../config.hosts source ./config.hosts
server=$M_HOST_PROD server=$M_HOST_PROD
echo stopping... echo stopping...

View File

@ -1,5 +1,5 @@
source ../config.hosts source ./config.hosts
server=$M_HOST_PROD server=$M_HOST_PROD
echo restarting... echo restarting...

View File

@ -1,5 +1,6 @@
if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi 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" ssh $1@$server "tail -n 100 -f run.log"

View File

@ -1,3 +0,0 @@
M_ROOT="ubuntu"
M_HOST_PROD="your-prod-host"
M_HOST_DEV="your-dev-host"

8
passwords/make Executable file
View File

@ -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

2
passwords/make-single-password Executable file
View File

@ -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