!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

79 Members
A room for PHP developers running on Nix23 Servers

Load older messages


SenderMessageTime
5 May 2024
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzThat would ensure that every package will have a different prefix08:01:45
@drupol:matrix.orgPol We don't care about packages having different prefix... since they are all isolated from each other, there is NO risk of collision. 08:02:21
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzThat's also true.08:02:35
@drupol:matrix.orgPolThat's a cool thing from Nix :)08:02:44
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzHah08:02:49
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzTrue that08:02:51
@drupol:matrix.orgPol(one of the true thing!)08:02:59
@drupol:matrix.orgPol * (one of the cool thing!)08:03:03
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzHowever, there is still a chance of misconfiguration, right?08:03:40
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzSay I have 2 PHP services running and I mistakenly point caddy to the same php-fpm socket for both services.08:03:57
@drupol:matrix.orgPolNo08:04:07
@drupol:matrix.orgPolThere won't be any single issue08:04:13
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzBut then the APCu cache will be shared08:04:23
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzBecause the same pool is being used for both services08:04:33
@drupol:matrix.orgPolThen this is something I'm not aware of.08:04:47
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyz(I'm not a PHP dev so I'm just speculating here)08:05:06
@drupol:matrix.orgPolHow is APCu working?08:05:21
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzAPCu is a key-value store08:05:52
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzThat's pretty much it08:06:03
@drupol:matrix.orgPolI understand why having the packagename in it make sense.08:06:29
@drupol:matrix.orgPolMaybe this is something to do indeed.08:06:41
@drupol:matrix.orgPolI dont know how I'm going to do that yet in Nix.08:06:54
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzJust get a base64 hash of the package name08:07:05
@drupol:matrix.orgPolin the shell?08:07:34
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyzYup08:07:37
@drupol:matrix.orgPolI'll see how we can do that.08:07:52
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyz Or of the composer.lock 08:08:00
@genghiz:talk.go7box.xyz@genghiz:talk.go7box.xyz You can just run something like base64 composer.lock | head -c32 to get a prefix 08:08:55
@drupol:matrix.orgPolWait08:10:11
@drupol:matrix.orgPolI have something better.08:10:15

Show newer messages


Back to Room ListRoom Version: 6