Skip to content

Commit dd257a8

Browse files
committed
fix(script): better update of stage / prod servers ... git reset, etc...
1 parent e486536 commit dd257a8

File tree

4 files changed

+33
-4
lines changed

4 files changed

+33
-4
lines changed

scripts/bolt/bolt-base.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
BDIR=`dirname $0`
2-
2+
. $BDIR/servers.sh
33

44
if [[ $1 == 'ALL' ]]
55
then
6-
. $BDIR/servers.sh
76
MACHINES=$SERVERS
87
elif [[ $1 == 'PROD' ]]
98
then
10-
. $BDIR/servers.sh
119
MACHINES="$BLUES_PD $GREENS_PD"
1210
elif [[ $1 == 'STAG' ]]
1311
then
14-
. $BDIR/servers.sh
1512
MACHINES="$BLUES_ST $GREENS_ST"
1613
else
1714
MPD=`$BDIR/getBlueGreenOpposites.sh`

scripts/bolt/clear-cache.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
##
2+
## will copy the gl/data (mbtiles junk) over to servers
3+
##
4+
BDIR=`dirname $0`
5+
. $BDIR/bolt-base.sh
6+
7+
echo "clear the cache..."
8+
for m in $CACHE_SERVERS
9+
do
10+
cmd="bolt command run \"./scripts/purge_disk_cache\" --targets $CACHE_USER@$m"
11+
echo $cmd
12+
eval $cmd
13+
done

scripts/bolt/echo_servers.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
##
2+
## will copy the gl/data (mbtiles junk) over to servers
3+
##
4+
BDIR=`dirname $0`
5+
. $BDIR/bolt-base.sh
6+
7+
echo "these are the target servers:"
8+
for m in $MACHINES
9+
do
10+
echo " $m"
11+
done
12+
13+
echo
14+
echo "and these are the http/apache/cache servers: $CACHE_SERVERS"
15+
echo

scripts/bolt/servers.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ BLUES="$BLUES_ST $BLUES_PD"
1010
GREENS="$GREENS_ST $GREENS_PD"
1111

1212
SERVERS="$BLUES $GREENS"
13+
14+
CACHE_USER="web_tiles-trimet-org"
15+
CACHE_SERVERS="rj-st-mapweb01 rj-pd-mapweb01 cs-pd-mapweb01"
16+
CACHE_SERVERS="rj-st-mapweb01"

0 commit comments

Comments
 (0)