3 ms·
Deploying PHP is only simple if you already have a web server up and running that someone else is maintaining. Otherwise deploying a PHP web app involves the sa
by gnz11 4y ago
Deploying PHP is only simple if you already have a web server up and running that someone else is maintaining. Otherwise deploying a PHP web app involves the same complexities as deploying a Python web app. I would even be inclined to say that deploying with gunicorn is even simpler than any PHP setup.
- thomaslord 4y agoI just took a look at Gunicorn and, while I'm probably a bit biased as a PHP developer who also maintains the infrastructure, I think setting up PHP is almost exactly the same as setting up Gunicorn. The Nginx config will look a little different, but it requires roughly the same number of lines in the config file. In both cases a first-time user will probably be doing a Google search for a tutorial and following that tutorial, and in both cases it's pretty much as simple as copy/pasting in the installation commands and then copy/pasting the Nginx config and modifying it to suit your use case. PHP has the advantage of allowing you to use shared hosting if you really want to, which is great if you're just getting started. Definitely not what I'd want to use for anything resource-intensive, but at least there's a way to build a basic site without setting up the server yourself.