修复wait-for-it.sh执行权限问题
Some checks are pending
Agent Tests / Lint and Format (push) Waiting to run
Agent Tests / Unit Tests (push) Waiting to run

This commit is contained in:
jingrow 2025-05-14 15:28:43 +08:00
parent 6e4a71e6c9
commit 7eeca20abe

View File

@ -1,5 +1,5 @@
[program:web]
command=bash -c "{{ directory }}/repo/wait-for-it.sh redis://127.0.0.1:{{ redis_port }} && {{ directory }}/env/bin/gunicorn --bind 127.0.0.1:{{ web_port }} --workers {{ gunicorn_workers }} agent.web:application"
command=bash -c "chmod +x {{ directory }}/repo/wait-for-it.sh && {{ directory }}/repo/wait-for-it.sh redis://127.0.0.1:{{ redis_port }} && {{ directory }}/env/bin/gunicorn --bind 127.0.0.1:{{ web_port }} --workers {{ gunicorn_workers }} agent.web:application"
environment=PYTHONUNBUFFERED=1{% if sentry_dsn %}, SENTRY_DSN="{{ sentry_dsn }}"{% endif %}
autostart=true
autorestart=true
@ -18,7 +18,7 @@ user={{ user }}
directory={{ directory }}
[program:worker]
command=bash -c "{{ directory }}/repo/wait-for-it.sh redis://127.0.0.1:{{ redis_port }} && exec {{ directory }}/env/bin/rq worker {% if sentry_dsn %}--sentry-dsn '{{ sentry_dsn }}'{% endif %} --url redis://127.0.0.1:{{ redis_port }} high default low"
command=bash -c "chmod +x {{ directory }}/repo/wait-for-it.sh && {{ directory }}/repo/wait-for-it.sh redis://127.0.0.1:{{ redis_port }} && exec {{ directory }}/env/bin/rq worker {% if sentry_dsn %}--sentry-dsn '{{ sentry_dsn }}'{% endif %} --url redis://127.0.0.1:{{ redis_port }} high default low"
environment=PYTHONUNBUFFERED=1
autostart=true
autorestart=true