You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
420 B

#!/usr/bin/env bash
rm -rf build
mkdir build
# Build Frontend
cd frontend/public
NODE_ENV=production npx tailwindcss-cli@latest build -o index.out.css
cd ..
npm run build && npm run export
cd ..
mv frontend/out build/frontend
# Backend
cd backend
source venv/bin/activate
if [ ! -f links.db ]; then
cd ..
rsync -ax --exclude venv backend/ build/backend
cp build