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,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "prisma generate && next build",
|
||||||
"start": "./node_modules/.bin/next start",
|
"start": "next start -p 3000",
|
||||||
"lint": "eslint"
|
"lint": "eslint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"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": "next dev -p 3000",
|
||||||
"dev:admin": "npm run dev --prefix admin -- -p 3001",
|
"dev:admin": "npm run dev --prefix admin -- -p 3001",
|
||||||
"all": "concurrently \"npm run dev\" \"npm run dev:admin\"",
|
"all": "concurrently \"npm run dev\" \"npm run dev:admin\"",
|
||||||
"build": "next build",
|
"build": "prisma generate && next build",
|
||||||
"build:admin": "npm run build --prefix admin",
|
"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",
|
"start:admin": "npm run start --prefix admin -- -p 3001",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"lint:admin": "npm run lint --prefix admin"
|
"lint:admin": "npm run lint --prefix admin"
|
||||||
|
|||||||
Reference in New Issue
Block a user