dokploy maj
Some checks failed
Build and Push App / build (push) Has been cancelled

This commit is contained in:
2026-04-19 22:01:35 +02:00
parent f97399e4fd
commit 3958f84e03
5 changed files with 25 additions and 4 deletions

9
.env.example Normal file
View File

@@ -0,0 +1,9 @@
# Configuration Base de données (Dokploy injection)
DATABASE_URL="postgresql://user:password@host:port/dbname?schema=public"
# Configuration Application
NEXT_PUBLIC_SITE_URL="http://localhost:3000"
# Autres variables (ex: Google AI, etc.)
# GOOGLE_GENERATIVE_AI_API_KEY="votre_cle_ici"
# NEXTAUTH_SECRET="votre_secret_ici"

6
admin/nixpacks.toml Normal file
View File

@@ -0,0 +1,6 @@
[phases.build]
cmds = ["npm install", "npx prisma generate", "npm run build"]
[phases.start]
# Exécute prisma db push avant de lancer l'application pour synchroniser le schéma
cmds = ["npx prisma db push --accept-data-loss", "npm start"]

View File

@@ -4,8 +4,8 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "./node_modules/.bin/next start",
"build": "prisma generate && next build",
"start": "next start -p 3000",
"lint": "eslint"
},
"dependencies": {

6
nixpacks.toml Normal file
View File

@@ -0,0 +1,6 @@
[phases.build]
cmds = ["npm install", "npx prisma generate", "npm run build"]
[phases.start]
# Exécute prisma db push avant de lancer l'application pour synchroniser le schéma
cmds = ["npx prisma db push --accept-data-loss", "npm start"]

View File

@@ -7,9 +7,9 @@
"dev": "next dev -p 3000",
"dev:admin": "npm run dev --prefix admin -- -p 3001",
"all": "concurrently \"npm run dev\" \"npm run dev:admin\"",
"build": "next build",
"build": "prisma generate && next build",
"build:admin": "npm run build --prefix admin",
"start": "./node_modules/.bin/next start -p 3000",
"start": "next start -p 3000",
"start:admin": "npm run start --prefix admin -- -p 3001",
"lint": "next lint",
"lint:admin": "npm run lint --prefix admin"