build on dev

This commit is contained in:
jaensen 2023-03-24 01:54:07 +01:00
parent d4989bacd4
commit 1f156f2916
2 changed files with 15 additions and 2 deletions

View file

@ -2,7 +2,7 @@ name: Build and push the dev image
on:
push:
branches: [ feature/dockerfile ]
branches: [ dev ]
jobs:
call-build-and-push:

View file

@ -6,5 +6,18 @@ fn main() {
let listen_at = env::args()
.nth(1)
.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);
}