fix: drizzle paths
This commit is contained in:
parent
8eb0f24585
commit
b70c7f39e6
5 changed files with 7 additions and 8 deletions
|
|
@ -13,7 +13,6 @@
|
|||
!**/components.json
|
||||
|
||||
!src/**
|
||||
!drizzle/**
|
||||
!app/**
|
||||
!public/**
|
||||
|
||||
|
|
|
|||
|
|
@ -78,14 +78,14 @@ ENV NODE_ENV="production"
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/package.json ./
|
||||
RUN bun install --production --frozen-lockfile
|
||||
|
||||
COPY --from=deps /deps/restic /usr/local/bin/restic
|
||||
COPY --from=deps /deps/rclone /usr/local/bin/rclone
|
||||
COPY --from=builder /app/dist/client ./dist/client
|
||||
COPY --from=builder /app/dist/server ./dist/server
|
||||
COPY --from=builder /app/drizzle ./assets/migrations
|
||||
COPY --from=builder /app/package.json ./
|
||||
|
||||
RUN bun install --production --frozen-lockfile
|
||||
COPY --from=builder /app/app/drizzle ./assets/migrations
|
||||
|
||||
# Include third-party licenses and attribution
|
||||
COPY ./LICENSES ./LICENSES
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export const DockerTabContent = ({ volume }: Props) => {
|
|||
};
|
||||
|
||||
return (
|
||||
<div className="grid gap-4 xl:grid-cols-[minmax(0,_1fr)_minmax(0,_1fr)]">
|
||||
<div className="grid gap-4 xl:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]">
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>Plug-and-play Docker integration</CardTitle>
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ export const VolumeInfoTabContent = ({ volume, statfs }: Props) => {
|
|||
|
||||
return (
|
||||
<>
|
||||
<div className="grid gap-4 xl:grid-cols-[minmax(0,_2.3fr)_minmax(320px,_1fr)]">
|
||||
<div className="grid gap-4 xl:grid-cols-[minmax(0,2.3fr)_minmax(320px,1fr)]">
|
||||
<Card className="p-6">
|
||||
<CreateVolumeForm
|
||||
initialValues={{ ...volume, ...volume.config }}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export const runDbMigrations = () => {
|
|||
|
||||
const { NODE_ENV } = process.env;
|
||||
if (NODE_ENV !== "production") {
|
||||
migrationsFolder = path.join("/app", "drizzle");
|
||||
migrationsFolder = path.join("/app", "app", "drizzle");
|
||||
}
|
||||
|
||||
migrate(db, { migrationsFolder });
|
||||
|
|
|
|||
Loading…
Reference in a new issue