updated
This commit is contained in:
14
app/install.sh
Normal file → Executable file
14
app/install.sh
Normal file → Executable 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"
|
||||
Reference in New Issue
Block a user