This commit is contained in:
9
.env.example
Normal file
9
.env.example
Normal 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
6
admin/nixpacks.toml
Normal 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"]
|
||||
@@ -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
6
nixpacks.toml
Normal 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"]
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user