diff --git a/README.md b/README.md index 9fc549f4..422f23a5 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,29 @@ A distributed task manager. * Status system. * Distributed IPC. +### Install Kōjō +```bash +$ cd example +$ vendor/bin/kojo db:setup:install $PWD/src/V1/Environment +``` ### Setting up a Worker. -`example/bin/setup-worker.php` +```bash +$ cd example +$ php bin/setup-worker.php +``` ### Example usage +Change `https://sqs.us-east-1.amazonaws.com/272157948465/local-bwilson` in `example/src` and `example/bin/create-messages.php` to your favorite SQS queue. + ```bash $ cd example +$ php bin/create-messages.php $ vendor/bin/kojo process:pool:server:start $PWD/src/V1/Environment +``` + +### Uninstall Kōjō +```bash +$ cd example +$ vendor/bin/kojo db:tear_down:uninstall $PWD/src/V1/Environment ``` \ No newline at end of file diff --git a/example/bin/setup-worker.php b/example/bin/setup-worker.php index 11ae4f27..4c2453d5 100644 --- a/example/bin/setup-worker.php +++ b/example/bin/setup-worker.php @@ -1,10 +1,13 @@ name('*.yml'); $finder->files()->in($discoverableDirectories);