fixes leftover container
This commit is contained in:
parent
2fa4ab9b12
commit
6c0038b421
3 changed files with 16 additions and 8 deletions
|
@ -1,11 +1,10 @@
|
|||
export type { Base, BaseContext } from "./lib/create.ts";
|
||||
|
||||
import { toText } from "https://deno.land/std@0.208.0/streams/to_text.ts";
|
||||
import { lines, log_from, loop_process, run } from "./lib/utils.ts";
|
||||
import { lines, log_from, loop_process, LoopProcess, run } from "./lib/utils.ts";
|
||||
import { ContainerConfig } from "./lib/config.ts";
|
||||
import { container_paths } from "./lib/paths.ts";
|
||||
import { container_command } from "./lib/nspawn.ts";
|
||||
import { LoopProcess } from "./lib/utils.ts";
|
||||
import { container_command, stop_container } from "./lib/nspawn.ts";
|
||||
import { NginxController } from "./lib/nginx.ts";
|
||||
|
||||
const log = log_from("lib");
|
||||
|
@ -81,8 +80,9 @@ export class Runner {
|
|||
this.loop = null as LoopProcess | null;
|
||||
}
|
||||
|
||||
start() {
|
||||
this.update_proxies();
|
||||
async start() {
|
||||
await stop_container(this.name);
|
||||
await this.update_proxies();
|
||||
this.start_process();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue