1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

make it easier to change php configuration

This commit is contained in:
Robin Appelman 2026-02-06 23:55:06 +01:00
commit 4bb6a21d7c
6 changed files with 71 additions and 0 deletions

View file

@ -470,6 +470,27 @@ async fn main() -> Result<ExitCode> {
.into_diagnostic()
.wrap_err("Failed to start $EDITOR");
}
HazeArgs::Reload { filter } => {
let cloud = Cloud::get_by_filter(&docker, filter, &config).await?;
exec(
&docker,
&cloud.id,
"root",
vec!["pkill", "php-fpm"],
Vec::<String>::new(),
Some(stdout()),
)
.await?;
exec(
&docker,
&cloud.id,
"root",
vec!["sh", "-c", "php-fpm --fpm-config /etc/php-fpm.conf&"],
Vec::<String>::new(),
Some(stdout()),
)
.await?;
}
};
Ok(ExitCode::SUCCESS)