#!/bin/bash

set -exuo pipefail
. make/lib.sh

scp vue_frontend/webpack-stats.json "$GIMLI_LOGIN:$TESTWEB/vue_frontend/"
rsync -ave ssh treenode/static/treenode/vue "$GIMLI_LOGIN:$TESTWEB/treenode/static/treenode/"
ssh "$GIMLI_LOGIN" "
	set -euxo pipefail
	cd $TESTWEB
	. make/lib.sh
	ensure_venv
	./manage.py collectstatic --noinput
	"