Skip to content

Instantly share code, notes, and snippets.

@gartmeier
Last active June 18, 2020 16:58
Show Gist options
  • Save gartmeier/4cc879f6297439f07ce2a226a1d9ff04 to your computer and use it in GitHub Desktop.
Save gartmeier/4cc879f6297439f07ce2a226a1d9ff04 to your computer and use it in GitHub Desktop.
Upload Vue.JS project with slides to Pitcher Admin
#!/usr/bin/env bash
FILE=875483
SLIDES=(1 2 3 4)
WORKING_DIR=/tmp/875483_1592496241
if [[ ! -d $WORKING_DIR ]]; then
mkdir /tmp/875483_1592496241
fi
kudu pull -f $FILE -p $WORKING_DIR
npm run build
cp -r dist/* $WORKING_DIR
for s in "${SLIDES[@]}"; do
cp dist/index.html $WORKING_DIR/slide"${s}".html
cp dist/index.html $WORKING_DIR/androidOnly/slide"${s}".html
cp dist/index.html $WORKING_DIR/iPadOnly/slide"${s}".html
cp dist/index.html $WORKING_DIR/windowsOnly/slide"${s}".html
done
kudu push -f $FILE -p $WORKING_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment