mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
Trim web server a bit and re-enable it
This commit is contained in:
parent
5bf3af57ab
commit
7bb148c0e7
2 changed files with 14 additions and 18 deletions
|
|
@ -26,16 +26,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);
|
||||
let web_config = web::WebConfig {
|
||||
port: port.unwrap_or(project.serve_port),
|
||||
server_id,
|
||||
start_time: Instant::now(),
|
||||
};
|
||||
|
||||
let mut partitions = HashMap::new();
|
||||
|
||||
|
|
@ -59,7 +54,11 @@ pub fn serve(project_path: &PathBuf, port: Option<u64>) {
|
|||
let mut session = Session::new(config.clone());
|
||||
session.start();
|
||||
|
||||
loop {
|
||||
thread::park();
|
||||
}
|
||||
println!("Server listening on port {}", web_config.port);
|
||||
|
||||
web::start(web_config);
|
||||
|
||||
// loop {
|
||||
// thread::park();
|
||||
// }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue