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:
parent
16cb573935
commit
4bb6a21d7c
6 changed files with 71 additions and 0 deletions
21
src/main.rs
21
src/main.rs
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue