Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-25 08:29:11

0001 #!/bin/bash
0002 #
0003 # Note: websockets are not in used at present (9/2025).
0004 # start_django_dual.sh is the script in use for standalone dev django.
0005 #
0006 # Require bash (fail fast if invoked under another shell)
0007 if [ -z "${BASH_VERSION:-}" ]; then
0008         echo "This script must be run with bash. Try: bash $0 \"$@\"" >&2
0009         exit 1
0010 fi
0011 # Script to start Django with Daphne for WebSocket support
0012 
0013 echo "Starting Django with Daphne for WebSocket support..."
0014 
0015 # Navigate to swf-monitor source directory
0016 cd /eic/u/wenauseic/github/swf-monitor/src
0017 
0018 # Activate virtual environment
0019 source /eic/u/wenauseic/github/swf-testbed/.venv/bin/activate
0020 
0021 # Kill existing Django server if running
0022 echo "Stopping existing Django server..."
0023 pkill -f "manage.py runserver"
0024 sleep 2
0025 
0026 # Start with Daphne
0027 echo "Starting Daphne ASGI server on port 8002..."
0028 daphne -p 8002 -b 0.0.0.0 swf_monitor_project.asgi:application