nanobox-io / nanobox-guides

Guides for using languages and frameworks with Nanobox
https://guides.nanobox.io
MIT License
11 stars 19 forks source link

Update php production guides #79

Closed sanderson closed 6 years ago

sanderson commented 6 years ago

Currently all the production php guides recommend using php-server as web start commands. The problem with this approach is that runit, the process manager views the multiple processes started as a single process. If one of them dies, it won't restart it.

The better approach would be to use two separate start commands:

Using Apache

web.site:
  start:
    php: start-php
    apache: start-apache

Using Nginx

web.site:
  start:
    php: start-php
    nginx: start-nginx