mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 20:32:20 +03:00
This project is inspired by and originally forked from 9router by decolua (https://github.com/decolua/9router). Full rebrand: 9router → OmniRoute across all source code, configuration, Docker, documentation, and assets.
22 lines
562 B
JavaScript
22 lines
562 B
JavaScript
// Server startup script
|
|
import initializeCloudSync from "./shared/services/initializeCloudSync.js";
|
|
|
|
async function startServer() {
|
|
console.log("Starting server with cloud sync...");
|
|
|
|
try {
|
|
// Initialize cloud sync
|
|
await initializeCloudSync();
|
|
console.log("Server started with cloud sync initialized");
|
|
} catch (error) {
|
|
console.log("Error initializing cloud sync:", error);
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
// Start the server initialization
|
|
startServer().catch(console.log);
|
|
|
|
// Export for use as module if needed
|
|
export default startServer;
|