Skip to content

Commit

Permalink
chore: update docs for NOTTY
Browse files Browse the repository at this point in the history
  • Loading branch information
coolcodemy committed Jul 31, 2021
1 parent 91a01a5 commit e562188
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <project-name>
script: ./queue-helper.sh
script: NOTTY=true butler php artisan queue:work --tries=1
exec_mode: fork
instances: 1
```
Expand Down

0 comments on commit e562188

Please sign in to comment.