Initial commit
This commit is contained in:
21
src/server-init.js
Normal file
21
src/server-init.js
Normal file
@@ -0,0 +1,21 @@
|
||||
// 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;
|
||||
Reference in New Issue
Block a user