echo "Killing Redis....."
killall redis-server
#echo "Starting redis Server....."
redis-server --daemonize yes
echo "Stopping NGINX......"
sudo /etc/init.d/nginx stop
echo "Starting NGINX......"
sudo /etc/init.d/nginx start
echo "Killing Daphne......"
sudo kill -9 $(ps aux | grep 'daphne' | awk '{print $2}')
echo "Starting Daphne....."
/home/ec2-user/MyDomainVenv/bin/daphne -b 0.0.0.0 -p 8001 main.asgi:channel_layer 2>> ./daphne.log &
echo "Starting Django worker thread...."
#nohup python ./manage.py runworker 2>>./daphneWorker.log >&2 &
python ./manage.py runworkernohup daphne -v 2 -b $AFCOM_DAPHNE_HOST -p $AFCOM_DAPHNE_PORT afcom.asgi:application > $AFCOM_PROJECT_PATH/daphne/afcom.log 2>&1 &
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b2a43f85-9b9a-48bf-918d-c70a70b1b80b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/chqoK7I_v4A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN7EoAaXtyij5N1TgL7xL6-sghwvMXUDn7ab12%2Bc4rPxTP6rHA%40mail.gmail.com.
Thanks Aldian , what about runworker ?