mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
2
.github/deployment/self-host/compose.yaml
vendored
2
.github/deployment/self-host/compose.yaml
vendored
@@ -28,8 +28,6 @@ services:
|
|||||||
- REDIS_SERVER_HOST=redis
|
- REDIS_SERVER_HOST=redis
|
||||||
- DATABASE_URL=postgres://affine:affine@postgres:5432/affine
|
- DATABASE_URL=postgres://affine:affine@postgres:5432/affine
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- AFFINE_ADMIN_EMAIL=${AFFINE_ADMIN_EMAIL}
|
|
||||||
- AFFINE_ADMIN_PASSWORD=${AFFINE_ADMIN_PASSWORD}
|
|
||||||
# Telemetry allows us to collect data on how you use the affine. This data will helps us improve the app and provide better features.
|
# Telemetry allows us to collect data on how you use the affine. This data will helps us improve the app and provide better features.
|
||||||
# Uncomment next line if you wish to quit telemetry.
|
# Uncomment next line if you wish to quit telemetry.
|
||||||
# - TELEMETRY_ENABLE=false
|
# - TELEMETRY_ENABLE=false
|
||||||
|
|||||||
@@ -23,11 +23,7 @@ export class SelfHostAdmin1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// revert the migration
|
// revert the migration
|
||||||
static async down(db: PrismaClient) {
|
static async down() {
|
||||||
await db.user.deleteMany({
|
//
|
||||||
where: {
|
|
||||||
email: process.env.AFFINE_ADMIN_EMAIL ?? 'admin@example.com',
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user