You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
79
79
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:
@@ -112,16 +109,13 @@ Next, you should start a Sail shell and use the `rr` executable to retrieve the
112
109
./vendor/bin/rr get-binary
113
110
```
114
111
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:
116
113
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:
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
158
152
> **Warning**
159
153
> 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.
160
154
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.
166
156
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:
0 commit comments