I used supervisor to open the scrapyd on my EC2 and my scrapyd is install in an virtualenv call env
This is my supervisor file for control scrapyd:
[program:scrapyd]
; Set full path to celery program if using virtualenv
command=/home/user1/env/bin/scrapyd
environment=PYTHONIOENCODING='UTF-8'
directory=/home/user1/env/user1
user=user1
numprocs=1
stdout_logfile=/var/log/scrapy/user1-django.log
stderr_logfile=/var/log/scrapy/user1-django.log
autostart=true
autorestart=true
startsecs=3
redirect_stderr=true
; Need to wait for currently executing tasks to finish at shutdown.
; Increase this if you have very long running tasks.
stopwaitsecs = 10
; When resorting to send SIGKILL to the program to terminate it
; send SIGKILL to its whole process group instead,
; taking care of its children as well.
stopasgroup=true
killasgroup=true
; if rabbitmq is supervised, set its priority higher
; so it starts first
priority=998
I want to know how to write config on my elastic beanstalk ,This is wrong.
container_commands:
01_syncdb:
command: "django-admin.py syncdb --noinput"
leader_only: true
02_runscrapyd:
command: "scrapyd"
leader_only: true
Aucun commentaire:
Enregistrer un commentaire