1. module.exports = {
    2. apps : [{
    3. name : "live_lottery",
    4. interpreter : "node",
    5. cwd : "/data/wwwroot/live_lottery/",
    6. script : "./app.js",
    7. exec_mode : "cluster",
    8. watch : true
    9. },
    10. {
    11. name : "live_queue",
    12. interpreter : "php",
    13. cwd : "/data/wwwroot/live_fed/",
    14. script : "artisan",
    15. ignore_watch : ["storage", "public"],
    16. instances : 5,
    17. args : ["queue:work", "--daemon", '--tries=3', "--delay=0"],
    18. error_file : "/data/wwwroot/live_fed/storage/logs/process/queue_error.log",
    19. out_file : "/data/wwwroot/live_fed/storage/logs/process/queue_out.log",
    20. exec_mode : "fork_mode",
    21. watch : true
    22. },
    23. {
    24. name : "live_queue_invite",
    25. interpreter : "php",
    26. cwd : "/data/wwwroot/live_fed/",
    27. script : "artisan",
    28. ignore_watch : ["storage", "public"],
    29. instances : 1,
    30. args : ["queue:work", "--daemon", '--tries=1', "--delay=3", "--queue=invite"],
    31. error_file : "/data/wwwroot/live_fed/storage/logs/process/queue_error.log",
    32. out_file : "/data/wwwroot/live_fed/storage/logs/process/queue_out.log",
    33. exec_mode : "fork_mode",
    34. watch : true
    35. },
    36. {
    37. name : "live_queue_mobile_recharge",
    38. interpreter : "php",
    39. cwd : "/data/wwwroot/live_fed/",
    40. script : "artisan",
    41. ignore_watch : ["storage", "public"],
    42. instances : 1,
    43. args : ["queue:work", "--daemon", '--tries=1', "--delay=1", "--queue=mobile_recharge"],
    44. error_file : "/data/wwwroot/live_fed/storage/logs/process/queue_mobile_recharge_error.log",
    45. out_file : "/data/wwwroot/live_fed/storage/logs/process/queue_mobile_recharge_out.log",
    46. exec_mode : "fork_mode",
    47. watch : true
    48. },
    49. {
    50. name : "live_queue_settle",
    51. interpreter : "php",
    52. cwd : "/data/wwwroot/live_fed/",
    53. script : "artisan",
    54. ignore_watch : ["storage", "public"],
    55. instances : 10,
    56. args : ["queue:work", "--daemon", '--tries=3', "--delay=1", "--queue=settle"],
    57. exec_mode : "fork_mode",
    58. error_file : "/data/wwwroot/live_fed/storage/logs/process/queue_settle_error.log",
    59. out_file : "/data/wwwroot/live_fed/storage/logs/process/queue_settle_out.log",
    60. watch : true
    61. },
    62. {
    63. name : "fed_queue_guessFailed",
    64. interpreter : "php",
    65. cwd : "/data/wwwroot/live_fed/",
    66. script : "artisan",
    67. ignore_watch : ["storage", "public"],
    68. instances : 5,
    69. args : ["queue:work", "--daemon", '--tries=3', "--delay=3", "--queue=guessFailed"],
    70. exec_mode : "fork_mode",
    71. error_file : "/data/wwwroot/live_fed/storage/logs/process/queue_guessFailed_error.log",
    72. out_file : "/data/wwwroot/live_fed/storage/logs/process/queue_guessFailed_out.log",
    73. watch : true
    74. },
    75. {
    76. name : "live_queue_distribute",
    77. interpreter : "php",
    78. cwd : "/data/wwwroot/live_fed/",
    79. script : "artisan",
    80. ignore_watch : ["storage", "public"],
    81. instances : 1,
    82. args : ["queue:work", "--daemon", '--tries=3', "--delay=1", "--queue=distribute"],
    83. exec_mode : "fork_mode",
    84. error_file : "/data/wwwroot/live_fed/storage/logs/process/queue_distribute_error.log",
    85. out_file : "/data/wwwroot/live_fed/storage/logs/process/queue_distribute_out.log",
    86. watch : true
    87. },
    88. {
    89. name : "live_guess_distribute",
    90. interpreter : "php",
    91. cwd : "/data/wwwroot/live_fed/",
    92. script : "artisan",
    93. ignore_watch : ["storage", "public"],
    94. instances : 1,
    95. args : ["guess:distribute"],
    96. exec_mode : "fork_mode",
    97. error_file : "/data/wwwroot/live_fed/storage/logs/process/guess_distribute_error.log",
    98. out_file : "/data/wwwroot/live_fed/storage/logs/process/guess_distribute_out.log",
    99. watch : true
    100. },
    101. {
    102. name : "live_question_push",
    103. interpreter : "php",
    104. cwd : "/data/wwwroot/live_fed/",
    105. script : "artisan",
    106. ignore_watch : ["storage", "public"],
    107. instances : 1,
    108. args : ["question:pushQuiz"],
    109. exec_mode : "fork_mode",
    110. error_file : "/data/wwwroot/live_fed/storage/logs/process/question_push_error.log",
    111. out_file : "/data/wwwroot/live_fed/storage/logs/process/question_push_out.log",
    112. watch : true
    113. },
    114. {
    115. name : "live_queue_monitor",
    116. interpreter : "php",
    117. cwd : "/data/wwwroot/live_fed/",
    118. script : "artisan",
    119. ignore_watch : ["storage", "public"],
    120. instances : 1,
    121. args : ["queue:work", "--daemon", '--tries=3', "--delay=3", "--queue=monitor"],
    122. error_file : "/data/wwwroot/live_fed/storage/logs/process/queue_monitor_error.log",
    123. out_file : "/data/wwwroot/live_fed/storage/logs/process/queue_monitor_out.log",
    124. exec_mode : "fork_mode",
    125. watch : true
    126. },
    127. {
    128. name : "live_draw_guess",
    129. interpreter : "php",
    130. cwd : "/data/wwwroot/live_fed/",
    131. script : "artisan",
    132. ignore_watch : ["storage", "public"],
    133. instances : 1,
    134. args : ["draw:guessNew"],
    135. exec_mode : "fork_mode",
    136. error_file : "/data/wwwroot/live_fed/storage/logs/process/draw_guess_error.log",
    137. out_file : "/data/wwwroot/live_fed/storage/logs/process/draw_guess_out.log",
    138. watch : true
    139. },
    140. {
    141. name : "live_monitor",
    142. interpreter : "php",
    143. cwd : "/data/wwwroot/live_fed/",
    144. script : "artisan",
    145. ignore_watch : ["storage", "public"],
    146. instances : 1,
    147. args : ["system:monitor"],
    148. exec_mode : "fork_mode",
    149. error_file : "/data/wwwroot/live_fed/storage/logs/process/monitor_error.log",
    150. out_file : "/data/wwwroot/live_fed/storage/logs/process/monitor_out.log",
    151. watch : true
    152. },
    153. {
    154. name : "fed_fix_avatar",
    155. interpreter : "php",
    156. cwd : "/data/wwwroot/live_fed/",
    157. script : "artisan",
    158. ignore_watch : ["storage", "public"],
    159. instances : 1,
    160. args : ["queue:work", "--daemon", '--tries=3', "--delay=3", "--queue=avatar"],
    161. exec_mode : "fork_mode",
    162. error_file : "/data/www/live/live_fed/storage/logs/process/fed_fix_avatar_error.log",
    163. out_file : "/data/www/live/live_fed/storage/logs/process/fed_fix_avatar_out.log",
    164. watch : true
    165. },
    166. {
    167. name : "fed_message_save",
    168. interpreter : "php",
    169. cwd : "/data/wwwroot/live_fed/",
    170. script : "artisan",
    171. ignore_watch : ["storage", "public"],
    172. instances : 1,
    173. args : ["message:save"],
    174. exec_mode : "fork_mode",
    175. error_file : "/data/www/live/live_fed/storage/logs/process/fed_message_save_error.log",
    176. out_file : "/data/www/live/live_fed/storage/logs/process/fed_message_save.log",
    177. watch : true
    178. }
    179. ]
    180. }