Skip to content

Instantly share code, notes, and snippets.

@perseoq
Created August 16, 2025 20:38
Show Gist options
  • Select an option

  • Save perseoq/a0274bedbbc4ca18443bf1eac117b794 to your computer and use it in GitHub Desktop.

Select an option

Save perseoq/a0274bedbbc4ca18443bf1eac117b794 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Verificar si el entorno virtual ya está activo
if [[ -z "$VIRTUAL_ENV" ]]; then
echo "Activando entorno virtual..."
source .venv/bin/activate
python wsgi.py
else
echo "El entorno virtual ya está activo: $VIRTUAL_ENV"
python wsgi.py
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment