Fix Docker startup schema sync

This commit is contained in:
2026-05-20 00:03:10 +02:00
parent bdb403812b
commit 499894474a
2 changed files with 11 additions and 2 deletions
+3 -1
View File
@@ -24,10 +24,12 @@ COPY --from=builder /app/public ./public
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/prisma ./prisma
COPY --from=builder /app/node_modules/@prisma ./node_modules/@prisma
COPY --from=builder /app/node_modules/prisma ./node_modules/prisma
USER nextjs
EXPOSE 3000
ENV PORT=3000
CMD ["node", "server.js"]
CMD ["sh", "-c", "node ./node_modules/prisma/build/index.js db push --skip-generate && node server.js"]
+8 -1
View File
@@ -110,7 +110,12 @@ function AuthScreen({ onAuth }: { onAuth: (user: User) => void }) {
{mode === "register" && (
<div className="field">
<label>Name</label>
<input value={name} onChange={(e) => setName(e.target.value)} placeholder="Rider name" />
<input
value={name}
onChange={(e) => setName(e.target.value)}
placeholder="Rider name"
autoComplete="name"
/>
</div>
)}
<div className="field">
@@ -120,6 +125,7 @@ function AuthScreen({ onAuth }: { onAuth: (user: User) => void }) {
value={email}
onChange={(e) => setEmail(e.target.value)}
placeholder="you@example.com"
autoComplete="email"
required
/>
</div>
@@ -130,6 +136,7 @@ function AuthScreen({ onAuth }: { onAuth: (user: User) => void }) {
value={password}
onChange={(e) => setPassword(e.target.value)}
placeholder="Min 6 characters"
autoComplete={mode === "login" ? "current-password" : "new-password"}
required
minLength={mode === "register" ? 6 : undefined}
/>