ThriveHive WordPress Plugin free WordPress plugin
Description
ThriveHive WordPress Plugin free WordPress plugin
This plugin will automatically instrument a site with ThriveHive’s tracking code, insert a tracked phone number, and insert a tracked form.
QA Prior to Deployment
Make sure that your code was updated in the skeleton directory of QA(alice.metallicocean.com) and site spinup was tested prior to releasing to production. To do this…
Download whm.pem from Google Drive Dev and place it in ~/Thrivehive/keys/
Run sh scripts/update_skeleton_directory.sh
— IMPORTANT —
The version number of the plugin MUST COMPLY with the following format:
`
vX.X(XX)
`
For example:
v1.1 (Regular release)
or
v1.101 (Bugfix)
The version needs to be updated in thrivehive.php and the change needs to be added to the changelog here along with the version number.
Deployment
Download whm.pem from Google Drive Dev and place it in ~/Thrivehive/keys/
Run sh scripts/production_deployment.sh
-or-
Zip the contents of the repo into a zip named thrivehive.zip. If you are inside the warp-prism folder you can select everything inside and put that into a zip.
Now you need to initiate an SFTP connection to all of the wordpress servers:
customers.thrivehivesite.com
customers2.thrivehivesite.com
customers3.thrivehivesite.com
customers4.thrivehivesite.com
Creds for these can be accessed from AWS EC2.
NOTE: EC2 says to use the “WHM KeyPair.pem” file – use the “WHM.pem” file on dropbox instead.
Copy the thrivehive.zip file into /root/plugins folder on each of the servers.
Also on each of the servers copy the contents of the repo (sans thrivehive.zip) into /root/cpanel3-skel/public_html/wp-content/plugins/thrivehive
Now that we have all the files on the servers, on each server we can run the script /scripts/update_thrivehive_addins.py –plugin
These scripts may run for a while, but once they are done, all plugins should be up to date!
Here’s a simple script to replicate this process:
`
cd ~/thrivehive/repos/warp-prism
git pull
cp -r ~/thrivehive/repos/warp-prism /tmp/
cd /tmp/warp-prism
rm -rf .git*
rm -rf .circleci
zip -r /tmp/thrivehive.zip .
for c in customers customers2 customers3 customers4; do
server=”${c}.thrivehivesite.com”
scp /tmp/thrivehive.zip $server:/tmp/
ssh $server “cp /tmp/thrivehive.zip /root/plugins/”
ssh $server “unzip -o /tmp/thrivehive.zip -d /root/cpanel3-skel/public_html/wp-content/plugins/thrivehive/”
ssh $server screen -d -m “/scripts/update_thrivehive_plugin.py”
done


