【发布时间】:2021-08-13 15:58:35
【问题描述】:
我想在服务器中添加这些作业但有错误(pm2):
apps:
- name: laravel-queue-worker
script:php /var/www/html/backendcodes/artisan
exec_mode: fork
interpreter: php
instances: 1
args:
- queue:work
- --queue=sendSms,sendNotification,sendEmail
- --tries=3
- --sleep=3
当我跑步时
pm2 启动 laravel-queue-worker.yml
它返回:
[PM2][ERROR] File laravel-queue-worker.yml malformated
{ [Error: Unable to parse.]
message: 'Unable to parse.',
parsedLine: 3,
snippet: 'script:php /var/www/html/raffle-backend-master/artisan' }
【问题讨论】: