Commit Graph

3 Commits

Author SHA1 Message Date
Torsten Schulz (local)
a7e0fe1d97 Refactor code structure for improved readability and maintainability; optimize performance across multiple modules. 2026-07-21 09:08:15 +02:00
Torsten Schulz (local)
19a89a4be3 fix(update-backend): adjust file permissions and handle environment variables safely
- Updated the permission settings for the environment file to 640, ensuring it is readable only by the owner and the deploy group.
- Modified the sequelize configuration to safely handle missing environment variables, converting them to strings or setting them to undefined to prevent runtime errors.
[force-deploy]
2026-04-17 13:53:13 +02:00
Torsten Schulz (local)
47807d5268 feat(database): add migration and sync-db scripts to deployment process
- Introduced a new npm script for database migrations in package.json.
- Updated update-backend.sh to execute migrations and conditionally run legacy sync-db based on environment variable.
- Enhanced syncDatabase.js to skip initialization routines if APP_INIT_ON_START is not set, promoting best practices for schema changes during deployment.
2026-04-17 11:34:59 +02:00