diff options
Diffstat (limited to 'planetwars-server/src/modules')
-rw-r--r-- | planetwars-server/src/modules/client_api.rs | 2 | ||||
-rw-r--r-- | planetwars-server/src/modules/matches.rs | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/planetwars-server/src/modules/client_api.rs b/planetwars-server/src/modules/client_api.rs index 9c0bbe7..ac4394f 100644 --- a/planetwars-server/src/modules/client_api.rs +++ b/planetwars-server/src/modules/client_api.rs @@ -377,7 +377,7 @@ pub async fn run_client_api(runner_config: Arc<GlobalConfig>, pool: ConnectionPo runner_config, }; - let addr = SocketAddr::from(([127, 0, 0, 1], 50051)); + let addr = SocketAddr::from(([0, 0, 0, 0], 50051)); Server::builder() .add_service(pb::client_api_service_server::ClientApiServiceServer::new( server, diff --git a/planetwars-server/src/modules/matches.rs b/planetwars-server/src/modules/matches.rs index 489a9fa..f5f9f2a 100644 --- a/planetwars-server/src/modules/matches.rs +++ b/planetwars-server/src/modules/matches.rs @@ -141,8 +141,9 @@ pub fn bot_version_to_botspec( } fn python_docker_bot_spec(config: &GlobalConfig, code_bundle_path: &str) -> Box<dyn BotSpec> { - let code_bundle_rel_path = PathBuf::from(&config.bots_directory).join(code_bundle_path); - let code_bundle_abs_path = std::fs::canonicalize(&code_bundle_rel_path).unwrap(); + let code_bundle_abs_path = PathBuf::from("/home/planetwars/data/bots").join(code_bundle_path); + //let code_bundle_abs_path = std::fs::canonicalize(&code_bundle_rel_path).unwrap(); + println!("{}",code_bundle_abs_path.display()); let code_bundle_path_str = code_bundle_abs_path.as_os_str().to_str().unwrap(); // TODO: it would be good to simplify this configuration |