mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-10 22:30:56 +00:00
23 lines
681 B
Bash
23 lines
681 B
Bash
|
|
#!/bin/bash
|
||
|
|
# Setup and start the Research Scheduler (Gemini & Jules)
|
||
|
|
# This script ensures the scheduler is running.
|
||
|
|
|
||
|
|
# Ensure logs directory exists
|
||
|
|
mkdir -p logs
|
||
|
|
|
||
|
|
# 1. Install dependencies
|
||
|
|
echo "Installing dependencies..."
|
||
|
|
pip install -r requirements.txt
|
||
|
|
|
||
|
|
# 2. Check for .env
|
||
|
|
if [ ! -f ".env" ]; then
|
||
|
|
echo ".env file not found. Creating empty .env..."
|
||
|
|
touch .env
|
||
|
|
echo "Please add your GEMINI_API_KEY, JULES_API_KEY, and JULES_API_URL to .env"
|
||
|
|
fi
|
||
|
|
|
||
|
|
# 3. Start Scheduler in background
|
||
|
|
echo "Starting Research Scheduler..."
|
||
|
|
nohup python3 scripts/schedule_research.py > logs/research.log 2>&1 &
|
||
|
|
PID=$!
|
||
|
|
echo "Scheduler started with PID $PID. Logs are in logs/research.log"
|