seller_central_backend/start.sh

12 lines
236 B
Bash
Raw Permalink Normal View History

#!/bin/bash
# Activate virtual environment if it exists
if [ -d "venv" ]; then
source venv/bin/activate
fi
# Apply migrations just in case
python manage.py migrate
# Start the Django server
python manage.py runserver 0.0.0.0:8000