add: added PHP to development environment for porting
This commit is contained in:
parent
54a2ef0dbe
commit
375e3b939e
4 changed files with 127 additions and 3 deletions
17
devbox.d/php/php-fpm.conf
Normal file
17
devbox.d/php/php-fpm.conf
Normal file
|
@ -0,0 +1,17 @@
|
|||
[global]
|
||||
pid = ${PHPFPM_PID_FILE}
|
||||
error_log = ${PHPFPM_ERROR_LOG_FILE}
|
||||
daemonize = yes
|
||||
|
||||
[www]
|
||||
; user = www-data
|
||||
; group = www-data
|
||||
listen = 127.0.0.1:${PHPFPM_PORT}
|
||||
; listen.owner = www-data
|
||||
; listen.group = www-data
|
||||
pm = dynamic
|
||||
pm.max_children = 5
|
||||
pm.start_servers = 2
|
||||
pm.min_spare_servers = 1
|
||||
pm.max_spare_servers = 3
|
||||
chdir = /
|
6
devbox.d/php/php.ini
Normal file
6
devbox.d/php/php.ini
Normal file
|
@ -0,0 +1,6 @@
|
|||
[php]
|
||||
|
||||
; Put your php.ini directives here. For the latest default php.ini file, see https://github.com/php/php-src/blob/master/php.ini-production
|
||||
|
||||
; memory_limit = 128M
|
||||
; expose_php = Off
|
10
devbox.json
10
devbox.json
|
@ -1,9 +1,13 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.11.0/.schema/devbox.schema.json",
|
||||
"packages": ["dart@latest"],
|
||||
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.11.0/.schema/devbox.schema.json",
|
||||
"packages": [
|
||||
"dart@latest",
|
||||
"php@latest",
|
||||
"php83Packages.composer@latest"
|
||||
],
|
||||
"shell": {
|
||||
"init_hook": [
|
||||
"echo 'Welcome to devbox!' > /dev/null"
|
||||
"echo 'Welcome to Protevus!' > /dev/null"
|
||||
],
|
||||
"scripts": {
|
||||
"test": [
|
||||
|
|
97
devbox.lock
97
devbox.lock
|
@ -48,6 +48,103 @@
|
|||
"store_path": "/nix/store/wbj1csi5fk2w99aiglwgg1mv406pw4pn-dart-3.4.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"php83Packages.composer@latest": {
|
||||
"last_modified": "2024-06-22T18:46:48Z",
|
||||
"resolved": "github:NixOS/nixpkgs/9693852a2070b398ee123a329e68f0dab5526681#php83Packages.composer",
|
||||
"source": "devbox-search",
|
||||
"version": "2.7.7",
|
||||
"systems": {
|
||||
"aarch64-darwin": {
|
||||
"outputs": [
|
||||
{
|
||||
"name": "out",
|
||||
"path": "/nix/store/c7z17lxbpw2h26hpz4lkm0qzr2ajmgyr-composer-2.7.7",
|
||||
"default": true
|
||||
}
|
||||
],
|
||||
"store_path": "/nix/store/c7z17lxbpw2h26hpz4lkm0qzr2ajmgyr-composer-2.7.7"
|
||||
},
|
||||
"aarch64-linux": {
|
||||
"outputs": [
|
||||
{
|
||||
"name": "out",
|
||||
"path": "/nix/store/zf9k05kr9i81c14rkx49qpsllws5qqmy-composer-2.7.7",
|
||||
"default": true
|
||||
}
|
||||
],
|
||||
"store_path": "/nix/store/zf9k05kr9i81c14rkx49qpsllws5qqmy-composer-2.7.7"
|
||||
},
|
||||
"x86_64-darwin": {
|
||||
"outputs": [
|
||||
{
|
||||
"name": "out",
|
||||
"path": "/nix/store/hwggjflib27ijasjgvhjg2fk7qg7qi2h-composer-2.7.7",
|
||||
"default": true
|
||||
}
|
||||
],
|
||||
"store_path": "/nix/store/hwggjflib27ijasjgvhjg2fk7qg7qi2h-composer-2.7.7"
|
||||
},
|
||||
"x86_64-linux": {
|
||||
"outputs": [
|
||||
{
|
||||
"name": "out",
|
||||
"path": "/nix/store/vplfs2jszxnnms17s0pwmkhwbx71nasj-composer-2.7.7",
|
||||
"default": true
|
||||
}
|
||||
],
|
||||
"store_path": "/nix/store/vplfs2jszxnnms17s0pwmkhwbx71nasj-composer-2.7.7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"php@latest": {
|
||||
"last_modified": "2024-06-22T18:46:48Z",
|
||||
"plugin_version": "0.0.3",
|
||||
"resolved": "github:NixOS/nixpkgs/9693852a2070b398ee123a329e68f0dab5526681#php83",
|
||||
"source": "devbox-search",
|
||||
"version": "8.3.8",
|
||||
"systems": {
|
||||
"aarch64-darwin": {
|
||||
"outputs": [
|
||||
{
|
||||
"name": "out",
|
||||
"path": "/nix/store/075628hsjsd2cg26g7rsqq7c4p4n1b6s-php-with-extensions-8.3.8",
|
||||
"default": true
|
||||
}
|
||||
],
|
||||
"store_path": "/nix/store/075628hsjsd2cg26g7rsqq7c4p4n1b6s-php-with-extensions-8.3.8"
|
||||
},
|
||||
"aarch64-linux": {
|
||||
"outputs": [
|
||||
{
|
||||
"name": "out",
|
||||
"path": "/nix/store/6jmxx5gp8skq2ainijd83nvhn45xzf7n-php-with-extensions-8.3.8",
|
||||
"default": true
|
||||
}
|
||||
],
|
||||
"store_path": "/nix/store/6jmxx5gp8skq2ainijd83nvhn45xzf7n-php-with-extensions-8.3.8"
|
||||
},
|
||||
"x86_64-darwin": {
|
||||
"outputs": [
|
||||
{
|
||||
"name": "out",
|
||||
"path": "/nix/store/ilyy5b77bjvxi97n29b2kxx3innykh7v-php-with-extensions-8.3.8",
|
||||
"default": true
|
||||
}
|
||||
],
|
||||
"store_path": "/nix/store/ilyy5b77bjvxi97n29b2kxx3innykh7v-php-with-extensions-8.3.8"
|
||||
},
|
||||
"x86_64-linux": {
|
||||
"outputs": [
|
||||
{
|
||||
"name": "out",
|
||||
"path": "/nix/store/2vp2fkf9av79zy2855w9cizm03fyksyi-php-with-extensions-8.3.8",
|
||||
"default": true
|
||||
}
|
||||
],
|
||||
"store_path": "/nix/store/2vp2fkf9av79zy2855w9cizm03fyksyi-php-with-extensions-8.3.8"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue