1 parent
23844ae301
commit
d25b5dbe6d
268 files changed
+3684
-8861
No files matched your search
@@ -9,8 +9,7 @@ import { db, schema } from "../db"
|
||||
* 所以这里按 DATABASE_URL 的主机名拦一道,需要绕过时显式设 OJ2_SEED_FORCE=true。
|
||||
*/
|
||||
const url =
|
||||
process.env.DATABASE_URL ??
|
||||
"postgres://onlinejudge:onlinejudge@localhost:5433/onlinejudge"
|
||||
process.env.DATABASE_URL ?? "postgres://onlinejudge:onlinejudge@localhost:5433/onlinejudge"
|
||||
const host = (() => {
|
||||
try {
|
||||
return new URL(url).hostname
|
||||
@@ -95,9 +94,7 @@ async function seed(account: SeedAccount) {
|
||||
})
|
||||
}
|
||||
|
||||
console.log(
|
||||
` ${account.adminType.padEnd(13)} ${user.username} / ${account.password}`,
|
||||
)
|
||||
console.log(` ${account.adminType.padEnd(13)} ${user.username} / ${account.password}`)
|
||||
}
|
||||
|
||||
console.log("Seeded development logins:")
|
||||
|
||||
Reference in new issue
Block a user