Sistema_Gestion_Transporte/docker/install.sh

19 lines
348 B
Bash
Raw Normal View History

2023-06-15 21:11:36 -04:00
#!/bin/sh
# si no existe directorio de ambiente, se crea
if [ ! -d ./libs ]; then
python -m venv libs
. ./libs/bin/activate
pip install -r requirements.txt
fi
# activar ambiente con dependencias
. ./libs/bin/activate
if [ ! -f .env ]; then
cp .env.develop .env
fi
# iniciar servidor
python ./myproject/manage.py runserver 0.0.0.0:$PORT