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
|
!**/components.json
|
||||||
|
|
||||||
!src/**
|
!src/**
|
||||||
!drizzle/**
|
|
||||||
!app/**
|
!app/**
|
||||||
!public/**
|
!public/**
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,14 +78,14 @@ ENV NODE_ENV="production"
|
||||||
|
|
||||||
WORKDIR /app
|
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/restic /usr/local/bin/restic
|
||||||
COPY --from=deps /deps/rclone /usr/local/bin/rclone
|
COPY --from=deps /deps/rclone /usr/local/bin/rclone
|
||||||
COPY --from=builder /app/dist/client ./dist/client
|
COPY --from=builder /app/dist/client ./dist/client
|
||||||
COPY --from=builder /app/dist/server ./dist/server
|
COPY --from=builder /app/dist/server ./dist/server
|
||||||
COPY --from=builder /app/drizzle ./assets/migrations
|
COPY --from=builder /app/app/drizzle ./assets/migrations
|
||||||
COPY --from=builder /app/package.json ./
|
|
||||||
|
|
||||||
RUN bun install --production --frozen-lockfile
|
|
||||||
|
|
||||||
# Include third-party licenses and attribution
|
# Include third-party licenses and attribution
|
||||||
COPY ./LICENSES ./LICENSES
|
COPY ./LICENSES ./LICENSES
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ export const DockerTabContent = ({ volume }: Props) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
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>
|
<Card>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>Plug-and-play Docker integration</CardTitle>
|
<CardTitle>Plug-and-play Docker integration</CardTitle>
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ export const VolumeInfoTabContent = ({ volume, statfs }: Props) => {
|
||||||
|
|
||||||
return (
|
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">
|
<Card className="p-6">
|
||||||
<CreateVolumeForm
|
<CreateVolumeForm
|
||||||
initialValues={{ ...volume, ...volume.config }}
|
initialValues={{ ...volume, ...volume.config }}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ export const runDbMigrations = () => {
|
||||||
|
|
||||||
const { NODE_ENV } = process.env;
|
const { NODE_ENV } = process.env;
|
||||||
if (NODE_ENV !== "production") {
|
if (NODE_ENV !== "production") {
|
||||||
migrationsFolder = path.join("/app", "drizzle");
|
migrationsFolder = path.join("/app", "app", "drizzle");
|
||||||
}
|
}
|
||||||
|
|
||||||
migrate(db, { migrationsFolder });
|
migrate(db, { migrationsFolder });
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue