|
#!/bin/bash |
|
|
|
echo "Starting the deployment process" |
|
|
|
|
|
echo "Changing permissions for all files to 777..." |
|
chmod -R 777 . |
|
|
|
|
|
echo "Creating virtual environment..." |
|
python3 -m venv venv |
|
|
|
|
|
echo "Activating virtual environment..." |
|
source venv/bin/activate |
|
|
|
|
|
echo "Installing dependencies..." |
|
pip install --upgrade pip |
|
pip install -r requirements.txt |
|
|
|
|
|
echo "Running download scripts..." |
|
for file in $(ls | grep download.*\.py); do |
|
echo "Executing $file..." |
|
python $file |
|
done |
|
|
|
|
|
echo "Starting the Flask application with Gunicorn..." |
|
gunicorn --bind 0.0.0.0:7860 app:app |
|
|