This commit is contained in:
2025-05-11 16:25:56 +03:00
parent 544aabb678
commit 2e5c0b9666
16 changed files with 11 additions and 5 deletions

14
app/install.sh Normal file → Executable file
View File

@@ -7,9 +7,15 @@ echo "Updating package list..."
sudo apt update
echo "Installing system dependencies..."
sudo apt install -y python3 python3-pip vlc libvlc-dev libvlccore-dev pulseaudio
sudo apt install -y python3 python3-pip python3-venv vlc libvlc-dev libvlccore-dev pulseaudio
echo "Installing Python dependencies..."
pip3 install -r requirements.txt
echo "Creating a virtual environment..."
python3 -m venv venv
echo "Setup complete. You can now run the app using: python3 app.py or gunicorn -w 4 -b 0.0.0.0:1025 app:app"
echo "Activating the virtual environment and installing Python dependencies..."
source venv/bin/activate
pip install -r requirements.txt
deactivate
echo "Setup complete. To start the app, activate the virtual environment using: source venv/bin/activate"
echo "Then run: python3 app.py or gunicorn -w 4 -b 0.0.0.0:1025 app:app"