diff --git a/resources/js/Components/CodeBlock.jsx b/resources/js/Components/CodeBlock.jsx index 101c9caa..9f58a198 100644 --- a/resources/js/Components/CodeBlock.jsx +++ b/resources/js/Components/CodeBlock.jsx @@ -7,6 +7,7 @@ import 'prismjs/components/prism-json' import 'prismjs/components/prism-jsx' import 'prismjs/components/prism-markup-templating' import 'prismjs/components/prism-php' +import 'prismjs/components/prism-ini' import { useState } from 'react' const CopyIcon = () => ( diff --git a/resources/js/Pages/server-side-rendering.jsx b/resources/js/Pages/server-side-rendering.jsx index dd2b5d48..e59e28a4 100644 --- a/resources/js/Pages/server-side-rendering.jsx +++ b/resources/js/Pages/server-side-rendering.jsx @@ -27,6 +27,7 @@ export const meta = { { url: '#running-the-ssr-server', name: 'Running the SSR server' }, { url: '#client-side-hydration', name: 'Client side hydration' }, { url: '#deployment', name: 'Deployment' }, + { url: '#supervisor-configuration', name: 'Supervisor configuration' }, ], } @@ -543,6 +544,48 @@ export default function () {
To run the SSR server on Laravel Cloud, you may use Cloud's native support for Inertia SSR.
++ In production, you should use a process monitor like Supervisor to ensure your SSR server stays running. Supervisor will automatically restart the SSR server if it crashes or stops unexpectedly. +
++ First, install Supervisor: +
+
+ Create a Supervisor configuration file at /etc/supervisor/conf.d/laravel-ssr.conf
:
+
+ Update and start the Supervisor process: +
++ Your SSR server will now automatically start on boot and restart if it fails. +
To run the SSR server on Forge, you should create a new daemon that runs{' '}