Комментарии:
Very cool.
ОтветитьFrom HN to video in under 24 hrs!
Having a play with this today so your timing is perfect.
or, we use GO :)
ОтветитьCool , Thanks
ОтветитьThis looks super convenient. I didn't came across it before, thanks a million for sharing it!
ОтветитьWow! This looks so promising for PHP. It appears to have more steps involved for installing. What do you think it would be more simple? To install unit from a PHP base docker image or to install PHP from a unit base image? Thank you!
ОтветитьI really appreciate this video, you are very good at explaining, I love that you go line by line. The only problem I have is with static files, for example a .txt file inside /public or the sitemap itself (.xml), do you have any idea how to handle this to make it work?
ОтветитьNice experiment! And thanks for listing the cons — the lack of Gzip compressions, inability to protect dot files and set cache headers for static files. We'll stick with good ol' nginx+PHP-FPM for now :D
ОтветитьUnit is awesome, but I had slightly different approach: install containerized unit-php8.2 and then run laravel. Very neat result. Until I had to make some mysql queries and not sqlite3. But that's fixable too.
ОтветитьGreat content! Would love to hear your opinion on Laravel Octane with different application servers as well.
ОтветитьAccording my tests unit-php can't handle concurrencty when script is doing sleep()
ОтветитьFancy to try frankenphp?
Ответитьhow to get metrics?
ОтветитьMight be interesting to benchmark Unit with a multi port config (attached to the same backend) & load balanced by some Nginx proxy config VS Unit with a processes config for a single port. All in all its definitely more flexible compared to FPM. And with some smart Nginx proxying, any non-PHP requests could be entirely offloaded to Nginx. That being said, if Unit's config also allowed defining the path to the unit-php binary, that would probably make a multi-PHP setup easier.
ОтветитьBeen battling with this for hours now. For some reason keep getting the following error when I try to push the config
```
{
"error": "Invalid configuration.",
"detail": "The module to run \"php\" is not found among the available application modules."
}
```
Any ideas?
Incredible content, Chris
Thank you!
you can use serversideup image for php it use s6-overlay mechanism that different from old supervisord, it can host your laravel app in a single docker image
ОтветитьI already have nginx server on my ubuntu 22.04 running for several project, I want to try nginx unit for my newest project, if I install this nginx unit, would it break my nginx and all related website?
ОтветитьGreat content. Keep 'em coming please!
Ответить