fix: create migrations and update to latest railpack

This commit is contained in:
Amir Moradi
2026-01-08 12:29:42 +01:00
parent b19d3e94eb
commit 0c62bc0f29
13 changed files with 6993 additions and 10 deletions

View File

@@ -0,0 +1,7 @@
{
"permissions": {
"allow": [
"Bash(ls:*)"
]
}
}

View File

@@ -31,7 +31,7 @@ jobs:
- name: Install Railpack - name: Install Railpack
if: matrix.job == 'test' if: matrix.job == 'test'
run: | run: |
export RAILPACK_VERSION=0.15.1 export RAILPACK_VERSION=0.15.4
curl -sSL https://railpack.com/install.sh | bash curl -sSL https://railpack.com/install.sh | bash
echo "Railpack installed $RAILPACK_VERSION" echo "Railpack installed $RAILPACK_VERSION"

View File

@@ -58,7 +58,7 @@ RUN curl -sSL https://nixpacks.com/install.sh -o install.sh \
&& pnpm install -g tsx && pnpm install -g tsx
# Install Railpack # Install Railpack
ARG RAILPACK_VERSION=0.15.1 ARG RAILPACK_VERSION=0.15.4
RUN curl -sSL https://railpack.com/install.sh | bash RUN curl -sSL https://railpack.com/install.sh | bash
# Install buildpacks # Install buildpacks

View File

@@ -25,7 +25,7 @@ if (typeof window === "undefined") {
} }
const baseApp: ApplicationNested = { const baseApp: ApplicationNested = {
railpackVersion: "0.15.1", railpackVersion: "0.15.4",
applicationId: "", applicationId: "",
previewLabels: [], previewLabels: [],
createEnvFile: true, createEnvFile: true,

View File

@@ -3,7 +3,7 @@ import { createRouterConfig } from "@dokploy/server";
import { expect, test } from "vitest"; import { expect, test } from "vitest";
const baseApp: ApplicationNested = { const baseApp: ApplicationNested = {
railpackVersion: "0.15.1", railpackVersion: "0.15.4",
rollbackActive: false, rollbackActive: false,
applicationId: "", applicationId: "",
previewLabels: [], previewLabels: [],

View File

@@ -65,7 +65,7 @@ const mySchema = z.discriminatedUnion("buildType", [
}), }),
z.object({ z.object({
buildType: z.literal(BuildType.railpack), buildType: z.literal(BuildType.railpack),
railpackVersion: z.string().nullable().default("0.15.1"), railpackVersion: z.string().nullable().default("0.15.4"),
}), }),
z.object({ z.object({
buildType: z.literal(BuildType.static), buildType: z.literal(BuildType.static),
@@ -186,7 +186,7 @@ export const ShowBuildChooseForm = ({ applicationId }: Props) => {
data.buildType === BuildType.static ? data.isStaticSpa : null, data.buildType === BuildType.static ? data.isStaticSpa : null,
railpackVersion: railpackVersion:
data.buildType === BuildType.railpack data.buildType === BuildType.railpack
? data.railpackVersion || "0.15.1" ? data.railpackVersion || "0.15.4"
: null, : null,
}) })
.then(async () => { .then(async () => {

View File

@@ -0,0 +1 @@
ALTER TABLE "application" ALTER COLUMN "railpackVersion" SET DEFAULT '0.15.4';

File diff suppressed because it is too large Load Diff

View File

@@ -939,6 +939,13 @@
"when": 1766301478005, "when": 1766301478005,
"tag": "0133_striped_the_order", "tag": "0133_striped_the_order",
"breakpoints": true "breakpoints": true
},
{
"idx": 134,
"version": "7",
"when": 1767871040249,
"tag": "0134_strong_hercules",
"breakpoints": true
} }
] ]
} }

View File

@@ -277,7 +277,7 @@ table application {
replicas integer [not null, default: 1] replicas integer [not null, default: 1]
applicationStatus applicationStatus [not null, default: 'idle'] applicationStatus applicationStatus [not null, default: 'idle']
buildType buildType [not null, default: 'nixpacks'] buildType buildType [not null, default: 'nixpacks']
railpackVersion text [default: '0.15.1'] railpackVersion text [default: '0.15.4']
herokuVersion text [default: '24'] herokuVersion text [default: '24']
publishDirectory text publishDirectory text
isStaticSpa boolean isStaticSpa boolean

View File

@@ -177,7 +177,7 @@ export const applications = pgTable("application", {
.notNull() .notNull()
.default("idle"), .default("idle"),
buildType: buildType("buildType").notNull().default("nixpacks"), buildType: buildType("buildType").notNull().default("nixpacks"),
railpackVersion: text("railpackVersion").default("0.15.1"), railpackVersion: text("railpackVersion").default("0.15.4"),
herokuVersion: text("herokuVersion").default("24"), herokuVersion: text("herokuVersion").default("24"),
publishDirectory: text("publishDirectory"), publishDirectory: text("publishDirectory"),
isStaticSpa: boolean("isStaticSpa"), isStaticSpa: boolean("isStaticSpa"),

View File

@@ -639,7 +639,7 @@ const installRailpack = () => `
if command_exists railpack; then if command_exists railpack; then
echo "Railpack already installed ✅" echo "Railpack already installed ✅"
else else
export RAILPACK_VERSION=0.15.1 export RAILPACK_VERSION=0.15.4
bash -c "$(curl -fsSL https://railpack.com/install.sh)" bash -c "$(curl -fsSL https://railpack.com/install.sh)"
echo "Railpack version $RAILPACK_VERSION installed ✅" echo "Railpack version $RAILPACK_VERSION installed ✅"
fi fi

View File

@@ -276,7 +276,7 @@ table application {
replicas integer [not null, default: 1] replicas integer [not null, default: 1]
applicationStatus applicationStatus [not null, default: 'idle'] applicationStatus applicationStatus [not null, default: 'idle']
buildType buildType [not null, default: 'nixpacks'] buildType buildType [not null, default: 'nixpacks']
railpackVersion text [default: '0.15.1'] railpackVersion text [default: '0.15.4']
herokuVersion text [default: '24'] herokuVersion text [default: '24']
publishDirectory text publishDirectory text
isStaticSpa boolean isStaticSpa boolean