diff --git a/.gitignore b/.gitignore index 21d0b89..b694934 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -.venv/ +.venv \ No newline at end of file diff --git a/app/__pycache__/app.cpython-312.pyc b/app/__pycache__/app.cpython-312.pyc old mode 100644 new mode 100755 diff --git a/app/app.py b/app/app.py old mode 100644 new mode 100755 diff --git a/app/app_config.json b/app/app_config.json old mode 100644 new mode 100755 diff --git a/app/install.sh b/app/install.sh old mode 100644 new mode 100755 index 9a708da..f4c67ac --- a/app/install.sh +++ b/app/install.sh @@ -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" \ No newline at end of file +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" \ No newline at end of file diff --git a/app/requirements.txt b/app/requirements.txt old mode 100644 new mode 100755 diff --git a/app/run_gunicorn.py b/app/run_gunicorn.py old mode 100644 new mode 100755 diff --git a/app/static/__pycache__/functions.cpython-312.pyc b/app/static/__pycache__/functions.cpython-312.pyc old mode 100644 new mode 100755 diff --git a/app/static/functions.py b/app/static/functions.py old mode 100644 new mode 100755 diff --git a/app/static/index.html b/app/static/index.html old mode 100644 new mode 100755 diff --git a/app/static/resurse/IMG_20250503_220547.jpg b/app/static/resurse/IMG_20250503_220547.jpg old mode 100644 new mode 100755 diff --git a/app/static/resurse/IMG_20250506_080609.jpg b/app/static/resurse/IMG_20250506_080609.jpg old mode 100644 new mode 100755 diff --git a/app/static/resurse/VID_20250501_184228.mp4 b/app/static/resurse/VID_20250501_184228.mp4 old mode 100644 new mode 100755 diff --git a/app/static/resurse/playlist.json b/app/static/resurse/playlist.json old mode 100644 new mode 100755 diff --git a/app/static/settings.html b/app/static/settings.html old mode 100644 new mode 100755 diff --git a/app/updated_playlist.json b/app/updated_playlist.json old mode 100644 new mode 100755