module.exports = {
apps : [{
name : "live_lottery",
interpreter : "node",
cwd : "/data/wwwroot/live_lottery/",
script : "./app.js",
exec_mode : "cluster",
watch : true
},
{
name : "live_queue",
interpreter : "php",
cwd : "/data/wwwroot/live_fed/",
script : "artisan",
ignore_watch : ["storage", "public"],
instances : 5,
args : ["queue:work", "--daemon", '--tries=3', "--delay=0"],
error_file : "/data/wwwroot/live_fed/storage/logs/process/queue_error.log",
out_file : "/data/wwwroot/live_fed/storage/logs/process/queue_out.log",
exec_mode : "fork_mode",
watch : true
},
{
name : "live_queue_invite",
interpreter : "php",
cwd : "/data/wwwroot/live_fed/",
script : "artisan",
ignore_watch : ["storage", "public"],
instances : 1,
args : ["queue:work", "--daemon", '--tries=1', "--delay=3", "--queue=invite"],
error_file : "/data/wwwroot/live_fed/storage/logs/process/queue_error.log",
out_file : "/data/wwwroot/live_fed/storage/logs/process/queue_out.log",
exec_mode : "fork_mode",
watch : true
},
{
name : "live_queue_mobile_recharge",
interpreter : "php",
cwd : "/data/wwwroot/live_fed/",
script : "artisan",
ignore_watch : ["storage", "public"],
instances : 1,
args : ["queue:work", "--daemon", '--tries=1', "--delay=1", "--queue=mobile_recharge"],
error_file : "/data/wwwroot/live_fed/storage/logs/process/queue_mobile_recharge_error.log",
out_file : "/data/wwwroot/live_fed/storage/logs/process/queue_mobile_recharge_out.log",
exec_mode : "fork_mode",
watch : true
},
{
name : "live_queue_settle",
interpreter : "php",
cwd : "/data/wwwroot/live_fed/",
script : "artisan",
ignore_watch : ["storage", "public"],
instances : 10,
args : ["queue:work", "--daemon", '--tries=3', "--delay=1", "--queue=settle"],
exec_mode : "fork_mode",
error_file : "/data/wwwroot/live_fed/storage/logs/process/queue_settle_error.log",
out_file : "/data/wwwroot/live_fed/storage/logs/process/queue_settle_out.log",
watch : true
},
{
name : "fed_queue_guessFailed",
interpreter : "php",
cwd : "/data/wwwroot/live_fed/",
script : "artisan",
ignore_watch : ["storage", "public"],
instances : 5,
args : ["queue:work", "--daemon", '--tries=3', "--delay=3", "--queue=guessFailed"],
exec_mode : "fork_mode",
error_file : "/data/wwwroot/live_fed/storage/logs/process/queue_guessFailed_error.log",
out_file : "/data/wwwroot/live_fed/storage/logs/process/queue_guessFailed_out.log",
watch : true
},
{
name : "live_queue_distribute",
interpreter : "php",
cwd : "/data/wwwroot/live_fed/",
script : "artisan",
ignore_watch : ["storage", "public"],
instances : 1,
args : ["queue:work", "--daemon", '--tries=3', "--delay=1", "--queue=distribute"],
exec_mode : "fork_mode",
error_file : "/data/wwwroot/live_fed/storage/logs/process/queue_distribute_error.log",
out_file : "/data/wwwroot/live_fed/storage/logs/process/queue_distribute_out.log",
watch : true
},
{
name : "live_guess_distribute",
interpreter : "php",
cwd : "/data/wwwroot/live_fed/",
script : "artisan",
ignore_watch : ["storage", "public"],
instances : 1,
args : ["guess:distribute"],
exec_mode : "fork_mode",
error_file : "/data/wwwroot/live_fed/storage/logs/process/guess_distribute_error.log",
out_file : "/data/wwwroot/live_fed/storage/logs/process/guess_distribute_out.log",
watch : true
},
{
name : "live_question_push",
interpreter : "php",
cwd : "/data/wwwroot/live_fed/",
script : "artisan",
ignore_watch : ["storage", "public"],
instances : 1,
args : ["question:pushQuiz"],
exec_mode : "fork_mode",
error_file : "/data/wwwroot/live_fed/storage/logs/process/question_push_error.log",
out_file : "/data/wwwroot/live_fed/storage/logs/process/question_push_out.log",
watch : true
},
{
name : "live_queue_monitor",
interpreter : "php",
cwd : "/data/wwwroot/live_fed/",
script : "artisan",
ignore_watch : ["storage", "public"],
instances : 1,
args : ["queue:work", "--daemon", '--tries=3', "--delay=3", "--queue=monitor"],
error_file : "/data/wwwroot/live_fed/storage/logs/process/queue_monitor_error.log",
out_file : "/data/wwwroot/live_fed/storage/logs/process/queue_monitor_out.log",
exec_mode : "fork_mode",
watch : true
},
{
name : "live_draw_guess",
interpreter : "php",
cwd : "/data/wwwroot/live_fed/",
script : "artisan",
ignore_watch : ["storage", "public"],
instances : 1,
args : ["draw:guessNew"],
exec_mode : "fork_mode",
error_file : "/data/wwwroot/live_fed/storage/logs/process/draw_guess_error.log",
out_file : "/data/wwwroot/live_fed/storage/logs/process/draw_guess_out.log",
watch : true
},
{
name : "live_monitor",
interpreter : "php",
cwd : "/data/wwwroot/live_fed/",
script : "artisan",
ignore_watch : ["storage", "public"],
instances : 1,
args : ["system:monitor"],
exec_mode : "fork_mode",
error_file : "/data/wwwroot/live_fed/storage/logs/process/monitor_error.log",
out_file : "/data/wwwroot/live_fed/storage/logs/process/monitor_out.log",
watch : true
},
{
name : "fed_fix_avatar",
interpreter : "php",
cwd : "/data/wwwroot/live_fed/",
script : "artisan",
ignore_watch : ["storage", "public"],
instances : 1,
args : ["queue:work", "--daemon", '--tries=3', "--delay=3", "--queue=avatar"],
exec_mode : "fork_mode",
error_file : "/data/www/live/live_fed/storage/logs/process/fed_fix_avatar_error.log",
out_file : "/data/www/live/live_fed/storage/logs/process/fed_fix_avatar_out.log",
watch : true
},
{
name : "fed_message_save",
interpreter : "php",
cwd : "/data/wwwroot/live_fed/",
script : "artisan",
ignore_watch : ["storage", "public"],
instances : 1,
args : ["message:save"],
exec_mode : "fork_mode",
error_file : "/data/www/live/live_fed/storage/logs/process/fed_message_save_error.log",
out_file : "/data/www/live/live_fed/storage/logs/process/fed_message_save.log",
watch : true
}
]
}