19 lines
348 B
Bash
19 lines
348 B
Bash
![]() |
#!/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
|