Skip to content

Commit 371592f

Browse files
Ngô Quốc Đạttaylorotwell
andauthored
docs: add Supervisor setup for Octane (#10837)
* docs: add Supervisor setup for Octane * formatting * Update octane.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 0c26218 commit 371592f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

octane.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,23 @@ php artisan octane:start
258258

259259
By default, Octane will start the server on port 8000, so you may access your application in a web browser via `http://localhost:8000`.
260260

261+
<a name="keeping-octane-running-in-production"></a>
262+
#### Keeping Octane Running in Production
263+
264+
If you are deploying your Octane application to production, you should use a process monitor such as Supervisor to ensure the Octane server stays running. A sample Supervisor configuration file for Octane might look like the following:
265+
266+
```ini
267+
[program:octane]
268+
process_name=%(program_name)s_%(process_num)02d
269+
command=php /home/forge/example.com/artisan octane:start --server=frankenphp --host=127.0.0.1 --port=8000
270+
autostart=true
271+
autorestart=true
272+
user=forge
273+
redirect_stderr=true
274+
stdout_logfile=/home/forge/example.com/storage/logs/octane.log
275+
stopwaitsecs=3600
276+
```
277+
261278
<a name="serving-your-application-via-https"></a>
262279
### Serving Your Application via HTTPS
263280

0 commit comments

Comments
 (0)