Files
python-projects-template/launch.sh
2026-01-11 15:39:45 +00:00

17 lines
308 B
Bash
Executable File

#!/bin/bash
# Copy .env if it doesn't exist
if [ ! -f .env ]; then
cp .env.example src/.env
echo ".env file created from template."
fi
# Setup Virtual Environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Run the app
python src/main.py