Files
Shortumation/docker/bin/build.sh
T
2022-07-17 20:46:28 -04:00

25 lines
328 B
Bash
Executable File

#!/bin/bash
set -e
api_location=${1}
web_location=${2}
function install_yarn() {
pushd $web_location
yarn
yarn build
cp -r $web_location/build $api_location/web
popd
}
function install_py() {
pushd $api_location
pip install . $api_location
popd
}
install_py
install_yarn
echo "DONE BUILD"