Skip to content

Commit 9d140fc

Browse files
committed
Merge branch 'patch-1' into 10.x
2 parents 7fbd40c + 551d76c commit 9d140fc

File tree

1 file changed

+19
-26
lines changed

1 file changed

+19
-26
lines changed

octane.md

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,13 @@ Next, you should use the `octane:install` Artisan command to install the Franken
7575
./vendor/bin/sail artisan octane:install --server=frankenphp
7676
```
7777

78-
Then, you should adjust the `supervisor.conf` file used by Sail to keep your application running. To get started, execute the `sail:publish` Artisan command:
78+
Finally, add a `SUPERVISOR_PHP_COMMAND` environment variable to the `laravel.test` service definition in your application's `docker-compose.yml` file. This environment variable will contain the command that Sail will use to serve your application using Octane instead of the PHP development server:
7979

80-
```shell
81-
./vendor/bin/sail artisan sail:publish
82-
```
83-
84-
Finally, update the `command` directive of your application's `docker/supervisord.conf` file so that Sail serves your application using Octane instead of the PHP development server:
85-
86-
```ini
87-
command=/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --server=frankenphp --host=0.0.0.0 --admin-port=2019 --port=80
80+
```yaml
81+
services:
82+
laravel.test:
83+
environment:
84+
SUPERVISOR_PHP_COMMAND: "/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --server=frankenphp --host=0.0.0.0 --admin-port=2019 --port=80" # [tl! add]
8885
```
8986
9087
<a name="roadrunner"></a>
@@ -112,16 +109,13 @@ Next, you should start a Sail shell and use the `rr` executable to retrieve the
112109
./vendor/bin/rr get-binary
113110
```
114111

115-
After installing the RoadRunner binary, you may exit your Sail shell session. You will now need to adjust the `supervisor.conf` file used by Sail to keep your application running. To get started, execute the `sail:publish` Artisan command:
112+
Then, add a `SUPERVISOR_PHP_COMMAND` environment variable to the `laravel.test` service definition in your application's `docker-compose.yml` file. This environment variable will contain the command that Sail will use to serve your application using Octane instead of the PHP development server:
116113

117-
```shell
118-
./vendor/bin/sail artisan sail:publish
119-
```
120-
121-
Next, update the `command` directive of your application's `docker/supervisord.conf` file so that Sail serves your application using Octane instead of the PHP development server:
122-
123-
```ini
124-
command=/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --server=roadrunner --host=0.0.0.0 --rpc-port=6001 --port=80
114+
```yaml
115+
services:
116+
laravel.test:
117+
environment:
118+
SUPERVISOR_PHP_COMMAND: "/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --server=roadrunner --host=0.0.0.0 --rpc-port=6001 --port=80" # [tl! add]
125119
```
126120
127121
Finally, ensure the `rr` binary is executable and build your Sail images:
@@ -158,16 +152,15 @@ Using Laravel Octane with Open Swoole grants the same functionality provided by
158152
> **Warning**
159153
> Before serving an Octane application via Sail, ensure you have the latest version of Laravel Sail and execute `./vendor/bin/sail build --no-cache` within your application's root directory.
160154

161-
Alternatively, you may develop your Swoole based Octane application using [Laravel Sail](/docs/{{version}}/sail), the official Docker based development environment for Laravel. Laravel Sail includes the Swoole extension by default. However, you will still need to adjust the `supervisor.conf` file used by Sail to keep your application running. To get started, execute the `sail:publish` Artisan command:
162-
163-
```shell
164-
./vendor/bin/sail artisan sail:publish
165-
```
155+
Alternatively, you may develop your Swoole based Octane application using [Laravel Sail](/docs/{{version}}/sail), the official Docker based development environment for Laravel. Laravel Sail includes the Swoole extension by default. However, you will still need to adjust the `docker-compose.yml` file used by Sail.
166156

167-
Next, update the `command` directive of your application's `docker/supervisord.conf` file so that Sail serves your application using Octane instead of the PHP development server:
157+
To get started, add a `SUPERVISOR_PHP_COMMAND` environment variable to the `laravel.test` service definition in your application's `docker-compose.yml` file. This environment variable will contain the command that Sail will use to serve your application using Octane instead of the PHP development server:
168158

169-
```ini
170-
command=/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --server=swoole --host=0.0.0.0 --port=80
159+
```yaml
160+
services:
161+
laravel.test:
162+
environment:
163+
SUPERVISOR_PHP_COMMAND: "/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --server=swoole --host=0.0.0.0 --port=80" # [tl! add]
171164
```
172165

173166
Finally, build your Sail images:

0 commit comments

Comments
 (0)