Spaces:
Runtime error
Runtime error
echo "Starting ResumeGen backend setup and execution..." | |
# Make sure we're in the backend directory | |
cd "$(dirname "$0")" | |
echo "Step 1: Running install script..." | |
# Check if we're running as root or if sudo is not available | |
if [[ $EUID -eq 0 ]] || ! command -v sudo &> /dev/null; then | |
echo "Detected root access or no sudo available - setting ROOT_ENVIRONMENT" | |
export ROOT_ENVIRONMENT=true | |
fi | |
# Execute the install script from the parent scripts directory | |
bash scripts/install-latex-packages.sh | |
if [ $? -eq 0 ]; then | |
echo "β Install script completed successfully" | |
else | |
echo "β Install script failed" | |
exit 1 | |
fi | |
echo "Step 2: Starting Python application..." | |
# Run the main Python application | |
python3 main.py | |
if [ $? -eq 0 ]; then | |
echo "β Python application completed successfully" | |
else | |
echo "β Python application failed" | |
exit 1 | |
fi |