selenium_keyan/selenium_django/Readme

23 lines
599 B
Plaintext
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

第一步:启动 Redis 服务器Celery Broker
Celery 默认使用 Redis 作为消息队列。
需要 修改selenium_django/settings.py里面的配置所有配置均在这里修改
第二步:启动 Celery Worker
Celery Worker 用于执行异步任务 trigger_task_execution。
执行celery -A selenium_django worker --loglevel=info
celery -A selenium_django worker -l info --pool=solo
第三步:启动 Django 开发服务器
python manage.py runserver
docker build -t selenium-django .
docker run -d \
--name selenium-django-container \
-p 8001:8000 \
selenium-django