Logging not working in laravel queue job

后端 未结 3 1850
情书的邮戳
情书的邮戳 2021-02-02 02:10

I have the below settings in my supervisor/conf.d/myconf.conf file :

[program:my-worker]    
process_name=%(program_name)s_%(process_num)02d    
command=php /var         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-02 02:34

    For solving this problem I did the following :

    1. Set the group id of the storage directory and all its sub-directories. Every file created in this directory will have www-data as group.

      sudo chgrp -r www-data storage
      sudo chmod +R g+s storage
      
    2. Add the running the script to the group www-data

      sudo usermod -a -G www-data user
      

提交回复
热议问题