deploy.sh 395 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#!/bin/bash

DEST=$1

if [ ! -d "$DEST" ]; then
  echo -e "Destination \"$DEST\" is not a directory. Run\n\tnpm deploy -- [destination-directory]"
  exit 1
fi

10 11 12 13
function copy() {
  echo -n "."
  cp "$@"
}
14

15 16 17 18
echo -n "Deploying..."
copy *.png $DEST/
copy *.css $DEST/
copy index.html $DEST/
19
copy info-view.html $DEST/
20
copy -R build $DEST/
21
copy -R img $DEST/
22
echo "done!"
23 24

echo "Deployed to $DEST/."