@@ -329,60 +329,6 @@ runwsgi instance/etc/zope.ini
329329In a web browser, visit http://localhost:8080/ to see that Plone is running.
330330
331331Your instance is running in the foreground.
332- For a daemonized process, see the section {ref}` manage-backend-process-manager ` .
333-
334-
335- (manage-backend-process-manager)=
336-
337- ### Process manager
338-
339- You can run, stop, or restart your backend and frontend, and more, with one command.
340- {term}` pm2 ` is a daemon process manager, suitable for production environments.
341-
342- Create an overall process configuration file {file}` pm2.config.js ` in the root of your project:
343-
344- ``` js
345- let apps = [
346- {
347- name: " plone_backend_tutorial" ,
348- script: ' runwsgi instance/etc/zope.ini' ,
349- cwd: ' backend'
350- },
351- {
352- name: " plone_frontend_tutorial" ,
353- script: ' yarn build && yarn start:prod' ,
354- cwd: ' frontend'
355- }
356- ];
357- module .exports = { apps: apps };
358- ```
359-
360- Start these processes with the following command.
361-
362- ``` shell
363- pm2 start pm2.config.js
364- ```
365-
366- See processes managed by ` pm2 ` (running and not running) with the following command.
367-
368- ``` shell
369- pm2 l
370- ```
371-
372- ![ List processes with 'pm2 l'] ( /_static/illustration/pm2.png )
373-
374- Restart a named process with the following command.
375-
376- ``` shell
377- pm2 start plone_backend_tutorial
378- ```
379-
380- Stop a named process with the following command.
381-
382- ``` shell
383- pm2 stop plone_backend_tutorial
384- ```
385-
386332
387333
388334(manage-backend-installation-details-label)=
0 commit comments