:-'Generic Commit'
Some checks failed
Build-Test-Publish / Build (push) Failing after 2s

This commit is contained in:
Your Name
2025-05-29 22:49:41 +12:00
parent a634a12bfc
commit 6d5e8c1485

View File

@@ -26,7 +26,7 @@ std::filesystem::path get_config_path() {
std::vector<std::filesystem::path> config_paths = {
"/data/sos_config.json",
_home / ".config/simple_object_storage/config.json",
_exe / ".." / ".test-docker" / "config.json"
_exe / ".." / ".test" / "config.json"
};
for (const auto& path : config_paths) {
@@ -57,6 +57,11 @@ bool initialize_server() {
std::cout << "Starting server at " << config.host << ":" << config.port << std::endl;
std::cout << "Object store path: " << config.object_store_path << std::endl;
if (!std::filesystem::exists(config.object_store_path)) {
std::cout << "Object store path does not exist: " << config.object_store_path << std::endl;
return false;
}
g_server = std::make_unique<Server>(config);
// Start server in a separate thread