21 lines
564 B
JavaScript
21 lines
564 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;
|