| Line 62... |
Line 62... |
| 62 |
echo "Content generation completed"
|
62 |
echo "Content generation completed"
|
| 63 |
mongodump -d CONTENT -c siteContent -q {"_id":${ENTITY_ID}} -o /tmp
|
63 |
mongodump -d CONTENT -c siteContent -q {"_id":${ENTITY_ID}} -o /tmp
|
| 64 |
for PROD_SERVER in $PROD_SERVERS
|
64 |
for PROD_SERVER in $PROD_SERVERS
|
| 65 |
do
|
65 |
do
|
| 66 |
echo "Mongo restore on server ${PROD_SERVER}"
|
66 |
echo "Mongo restore on server ${PROD_SERVER}"
|
| 67 |
mongo CONTENT -host ${PROD_SERVER} --quiet --eval --shell "db.siteContent.remove({"_id":${ENTITY_ID}})"
|
67 |
mongo CONTENT -host ${PROD_SERVER} --quiet --eval "db.siteContent.remove({"_id":${ENTITY_ID}})" --shell
|
| 68 |
mongorestore -host ${PROD_SERVER} -d CONTENT -c siteContent /tmp/CONTENT/siteContent.bson
|
68 |
mongorestore -host ${PROD_SERVER} -d CONTENT -c siteContent /tmp/CONTENT/siteContent.bson
|
| 69 |
echo "Copying generated content to production server ${PROD_SERVER}"
|
69 |
echo "Copying generated content to production server ${PROD_SERVER}"
|
| 70 |
echo "======================================================="
|
70 |
echo "======================================================="
|
| 71 |
#Update entities on staging using the entities-shop2020 direcotry
|
71 |
#Update entities on staging using the entities-shop2020 direcotry
|
| 72 |
cd /var/lib/tomcat6/webapps/export/html
|
72 |
cd /var/lib/tomcat6/webapps/export/html
|