build on dev
This commit is contained in:
parent
d4989bacd4
commit
1f156f2916
2 changed files with 15 additions and 2 deletions
2
.github/workflows/dev.yml
vendored
2
.github/workflows/dev.yml
vendored
|
@ -2,7 +2,7 @@ name: Build and push the dev image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ feature/dockerfile ]
|
branches: [ dev ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
call-build-and-push:
|
call-build-and-push:
|
||||||
|
|
|
@ -6,5 +6,18 @@ fn main() {
|
||||||
let listen_at = env::args()
|
let listen_at = env::args()
|
||||||
.nth(1)
|
.nth(1)
|
||||||
.unwrap_or_else(|| "127.0.0.1:8080".to_string());
|
.unwrap_or_else(|| "127.0.0.1:8080".to_string());
|
||||||
server::start_server(&listen_at, 10, 4);
|
|
||||||
|
let queue_size = env::args()
|
||||||
|
.nth(2)
|
||||||
|
.unwrap_or_else(|| "10".to_string())
|
||||||
|
.parse::<usize>()
|
||||||
|
.unwrap();;
|
||||||
|
|
||||||
|
let thread_count = env::args()
|
||||||
|
.nth(3)
|
||||||
|
.unwrap_or_else(|| "4".to_string())
|
||||||
|
.parse::<u64>()
|
||||||
|
.unwrap();;
|
||||||
|
|
||||||
|
server::start_server(&listen_at, queue_size, thread_count);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue