mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
fix: container removal, no secretKey panic
This commit is contained in:
1 parent
d4000eb5a6
commit
c008f82cb0
4 files changed
+17
-11
No files matched your search
@@ -17,6 +17,14 @@ import sessionMiddleware from './middleware/session.js'
|
||||
import expiryRemovalScheduler from './containers/expiryChecker.js'
|
||||
|
||||
async function main() {
|
||||
if (!config.secret) {
|
||||
console.warn(
|
||||
'No SECRET_KEY found in .env! To set up a persistent key, please run the setup script:'
|
||||
)
|
||||
console.warn('yarn setup')
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
try {
|
||||
await connectDB(config.db)
|
||||
console.log('Connected to MongoDB')
|
||||
|
||||
Reference in new issue
Block a user