mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
Add support for frankenphp
This commit is contained in:
parent
0105c60a09
commit
87d33e01d2
3 changed files with 27 additions and 3 deletions
|
|
@ -74,6 +74,11 @@ then
|
||||||
'&
|
'&
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "${FRANKENPHP:-}" ]
|
||||||
|
then
|
||||||
php-fpm --fpm-config /etc/php-fpm.conf&
|
php-fpm --fpm-config /etc/php-fpm.conf&
|
||||||
|
|
||||||
nginx -c /etc/nginx.conf
|
nginx -c /etc/nginx.conf
|
||||||
|
else
|
||||||
|
frankenphp run
|
||||||
|
fi
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
writeShellApplication,
|
writeShellApplication,
|
||||||
vim,
|
vim,
|
||||||
helix,
|
helix,
|
||||||
|
frankenphp,
|
||||||
}: let
|
}: let
|
||||||
inherit (builtins) toString;
|
inherit (builtins) toString;
|
||||||
inherit (lib) readFile getExe concatStringsSep splitString take;
|
inherit (lib) readFile getExe concatStringsSep splitString take;
|
||||||
|
|
@ -145,6 +146,7 @@
|
||||||
oracle-instantclient
|
oracle-instantclient
|
||||||
vim
|
vim
|
||||||
helix
|
helix
|
||||||
|
frankenphp
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -207,6 +207,19 @@ impl ServiceTrait for RedisTls {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Clone, Eq, PartialEq, Debug)]
|
||||||
|
pub struct FrankenPHP;
|
||||||
|
|
||||||
|
impl ServiceTrait for FrankenPHP {
|
||||||
|
fn name(&self) -> &str {
|
||||||
|
"frankenphp"
|
||||||
|
}
|
||||||
|
|
||||||
|
fn env(&self) -> &[&str] {
|
||||||
|
&["FRANKENPHP=1"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(
|
#[derive(
|
||||||
Copy, Clone, Debug, PartialEq, EnumString, EnumMessage, EnumIter, IntoStaticStr, Display,
|
Copy, Clone, Debug, PartialEq, EnumString, EnumMessage, EnumIter, IntoStaticStr, Display,
|
||||||
)]
|
)]
|
||||||
|
|
@ -281,6 +294,8 @@ pub enum ServiceType {
|
||||||
Redis,
|
Redis,
|
||||||
/// External redis instance with TLS
|
/// External redis instance with TLS
|
||||||
RedisTls,
|
RedisTls,
|
||||||
|
/// FrankenPHP
|
||||||
|
FrankenPHP,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[enum_dispatch]
|
#[enum_dispatch]
|
||||||
|
|
@ -311,6 +326,7 @@ pub enum Service {
|
||||||
Redis(Redis),
|
Redis(Redis),
|
||||||
RedisTls(RedisTls),
|
RedisTls(RedisTls),
|
||||||
Preset(PresetService),
|
Preset(PresetService),
|
||||||
|
FrankenPHP(FrankenPHP),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Service {
|
impl Service {
|
||||||
|
|
@ -352,6 +368,7 @@ impl Service {
|
||||||
ServiceType::Mail => Some(vec![Service::Mail(Mail)]),
|
ServiceType::Mail => Some(vec![Service::Mail(Mail)]),
|
||||||
ServiceType::Redis => Some(vec![Service::Redis(Redis)]),
|
ServiceType::Redis => Some(vec![Service::Redis(Redis)]),
|
||||||
ServiceType::RedisTls => Some(vec![Service::RedisTls(RedisTls)]),
|
ServiceType::RedisTls => Some(vec![Service::RedisTls(RedisTls)]),
|
||||||
|
ServiceType::FrankenPHP => Some(vec![Service::FrankenPHP(FrankenPHP)]),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
presets
|
presets
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue