|
@ -5,11 +5,20 @@ set -o nounset |
|
|
|
|
|
|
|
|
mkdir -p backend/client |
|
|
mkdir -p backend/client |
|
|
|
|
|
|
|
|
|
|
|
# Build frontend |
|
|
cd frontend |
|
|
cd frontend |
|
|
export PUBLIC_PATH="/static/_nuxt/" |
|
|
export PUBLIC_PATH="/static/_nuxt/" |
|
|
|
|
|
yarn install |
|
|
yarn build |
|
|
yarn build |
|
|
cp -r dist ../backend/client/ |
|
|
cp -r dist ../backend/client/ |
|
|
|
|
|
|
|
|
|
|
|
# Install backend dependencies and collect static files |
|
|
cd ../backend |
|
|
cd ../backend |
|
|
|
|
|
poetry install |
|
|
poetry run task collectstatic |
|
|
poetry run task collectstatic |
|
|
|
|
|
|
|
|
|
|
|
# Build Python package |
|
|
|
|
|
cd .. |
|
|
|
|
|
sed -e "s/, from = \"..\"//g" backend/pyproject.toml > pyproject.toml |
|
|
poetry build |
|
|
poetry build |
|
|
|
|
|
rm pyproject.toml |