Leaving Netlify and Render without losing a user, a video or a link
说明与用途
将 Classync 从 Netlify 和 Render 迁移到 Open Source Cloud,保留所有用户、视频和链接,无需重置密码。
问题
Migrating a full‑stack video review app from Netlify and Render to Open Source Cloud while preserving users, media, comments, projects and all legacy links.
结果
Classync migrated to OSC without user password resets, media, comments, projects, or link breakage; all services now run as a single My App with parameter store and automated backups.
工作流
- Map Netlify/Render jobs to OSC equivalents
- Combine frontend and backend into one My App with root build/start scripts
- Move env vars to OSC parameter store
- Dump MongoDB Atlas data with mongodump, restore to FerretDB, verify counts and hashes
- Adjust Express routing to serve SPA and API, add health check and Swagger
- Deploy My App on OSC
- Verify deep links, media, comments, projects, and user logins
证据
Classync is small: 24 users, 179 comments, 21 projects, about 0.1 MB of data and about 1.7 GB of media.
FerretDB is the MongoDB-compatible database on OSC, so Mongoose only needs a new connection string.
The passwords are bcrypt hashes, so a straight copy keeps every password working.
- 记录日期: 2026-10-16T13:41:22.271Z