Subversion Repositories SmartDukaan

Rev

Rev 11794 | Rev 11797 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11794 Rev 11796
Line 61... Line 61...
61
echo "======================================================="
61
echo "======================================================="
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
	mongorestore -h ${PROD_SERVER} -d CONTENT -c siteContent /tmp/CONTENT/siteContent.bson
67
	mongorestore -h ${PROD_SERVER} -d CONTENT -c siteContent /tmp/CONTENT/siteContent.bson
68
	echo "Copying generated content to production server ${PROD_SERVER}"
68
	echo "Copying generated content to production server ${PROD_SERVER}"
69
	echo "======================================================="
69
	echo "======================================================="
70
	#Update entities on staging using the entities-shop2020 direcotry
70
	#Update entities on staging using the entities-shop2020 direcotry
71
	cd /var/lib/tomcat6/webapps/export/html
71
	cd /var/lib/tomcat6/webapps/export/html