mirror of
https://github.com/vegu-ai/talemate.git
synced 2025-09-01 09:59:08 +00:00
34 lines
No EOL
611 B
Bash
34 lines
No EOL
611 B
Bash
#!/bin/sh
|
|
|
|
echo "Checking git repository..."
|
|
# Initialize git if needed
|
|
if [ ! -d ".git" ]; then
|
|
git init
|
|
git remote add origin https://github.com/vegu-ai/talemate
|
|
fi
|
|
|
|
# Pull latest changes
|
|
git pull
|
|
|
|
# Activate virtual environment
|
|
. talemate_env/bin/activate
|
|
|
|
# Install dependencies with poetry
|
|
echo "Updating virtual environment..."
|
|
python3 -m poetry install
|
|
|
|
echo "Virtual environment updated!"
|
|
|
|
# Update npm packages
|
|
echo "Updating npm packages..."
|
|
cd talemate_frontend
|
|
npm install
|
|
|
|
echo "NPM packages updated"
|
|
|
|
# Build frontend
|
|
echo "Building frontend..."
|
|
npm run build
|
|
|
|
cd ..
|
|
echo "Update complete" |