Ideas for Arc XP

Allow PB Data exports to be fetched with API creds through wget/curl

This would allow developers to automate updating their local docker pagebuilder instances with the latest configurations with a bash script or an npm script.  This is my current script, but i still have to manually click and download the gzip before i can run it:

function pbload() {
local fn=$1;
if [ $# -eq 1 ]; then local fn=$1; else local fn=`ls -t1 ~/Downloads/pb_advancelocal_*.tar.gz | head -n 1`; fi
local pb_dir=~/Documents/Advance-Local-PageBuilder-Features;
echo "using tarfile: " $fn

rm -rf /tmp/pb;
mkdir /tmp/pb;
tar -xvzf "$fn" --directory /tmp/pb;
pushd $PROJECT_REPO/docker;
rm mongo/data/*;
mv /tmp/pb/pb_advancelocal_sandbox/* mongo/data/;
npm run local-import;
popd;
}
  • Guest
  • Oct 17 2018
  • Future consideration
  • Attach files