12 karma · joined May 4, 2024 (2y ago) · 2 submissions
comment 2y ago · link · parent
Example 1:
I developed internal tools on a single server. The way I would do it was to have a personal folder on the server that I could use for development. Then I would commit the files to CVS which was the used for "deployment" to the main "production" folder. This worked well for me.
Example 2:
We also had a customer facing website where this practice was not allowed. We had proper build pipelines that created RPM packages which was installed by hand on the production machines.
My point is that there were many ways of avoiding editing the files directly in "production", even back when PHP ruled the world.
comment 2y ago · link · parent
It just keeps running and auto corrects any temporary load issues because of its stateless nature. I don't have to worry about memory leakage or processes that eventually become unresponsive and needs to be restarted. If the unlikely event that the PHP process crashes, it will just restart automatically and handle the next request as if nothing happened.
Its the ideal solution for side projects, and I am definitely going back now that I don't have time to maintain complicated infrastructure.
PHP was my generation's version of AWS stateless "lamda". Just place a file in the folder, and it will be executed on demand and clean up resources after the request has ended. A server could handle many different websites at the same time. That was basically how we could get cheap webhosting. They just put a bunch of Apache-instances behind a load balancer and used a shared network drive to read the files from