From e5621880bc984df1f6804cf5c07d250add37119d Mon Sep 17 00:00:00 2001 From: Ahmad Fikrizaman Date: Sat, 31 Jul 2021 10:44:37 +0800 Subject: [PATCH] chore: update docs for NOTTY --- README.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index 0c843a1..a645472 100644 --- a/README.md +++ b/README.md @@ -187,20 +187,12 @@ To change this, you need to update `.env` file and `DEFAULT_WWW_PATH` to a new p Since you didn't install PHP inside your Mac, you also can't run `php artisan queue:work` using Supervisor. Right now I have no idea how to run Supervisor, but there is a way without using Supervisor, which is using [PM2](https://www.npmjs.com/package/pm2). This suggestion still need a better implementation. -Create `queue-helper.sh` inside your project folder and the content is - -```shell -#!/bin/bash - -butler php artisan queue:work --tries=1 -``` - Then create PM2 config inside the same folder, `pm2-queue.yaml`. The content is ```yaml apps: - name: - script: ./queue-helper.sh + script: NOTTY=true butler php artisan queue:work --tries=1 exec_mode: fork instances: 1 ```