Move all web pieces into WebConfig

This commit is contained in:
Lucien Greathouse 2018-04-13 00:21:44 -07:00
parent d0f821add4
commit 81d232fac5
3 changed files with 8 additions and 5 deletions

View file

@ -24,9 +24,11 @@ pub fn serve(project_path: &PathBuf, port: Option<u64>) {
let web_config = web::WebConfig {
port: port.unwrap_or(project.serve_port),
server_id,
project: project.clone(),
start_time: Instant::now(),
};
println!("Server listening on port {}", web_config.port);
web::start(web_config, project.clone(), Instant::now());
web::start(web_config);
}