3 ms·
> You don't need a systemd unit to keep your server running You do, actually. You need a systemd unit to keep your apache / nginx + fpm / whatever server that
by develatio 3y ago
> You don't need a systemd unit to keep your server running
You do, actually. You need a systemd unit to keep your apache / nginx + fpm / whatever server that is actually handling and processing your requests.
Edit:
> You could use Ansible to deploy your PHP but you can probably just use git.
You can use Ansible to deploy your [Python | Ruby | Perl | JS | Java | literally every other language on earth]. I can't see your point.
- samsquire 3y agoI wanted to emphasise the easiness of PHP in my comment. You don't need a systemd unit file for your php files whereas you do for your Java app unless you're using a Java container such as Tomcat. I have typically used system packages to install PHP and nginx and fpm which includes those systemd units My overreaching point was the ease of using PHP. As a low tech solution. In the previous era you just FTP your files to the server but you can use git instead which is probably easier than using Ansible. (That's my comparison of FTP vs Git vs Ansible and which is easiest) Doing zero downtime deployments with PHP is easier than Java (rolling deploys in Kubernetes)