Deploy prd

This commit is contained in:
Rayan Konecny 2026-05-03 18:48:39 -03:00
parent 5538b7340d
commit 2ecccc2e29
3 changed files with 23 additions and 7 deletions

View file

@ -1,8 +1,8 @@
# Database
DATABASE_URL=postgresql://user:password@localhost:5432/toptran
DB_USER=user
DB_PASSWORD=password
DB_HOST=localhost
DATABASE_URL=postgresql://postgres:postgres@175.15.15.90:5432/toptran
DB_USER=postgres
DB_PASSWORD=postgres
DB_HOST=175.15.15.90
DB_PORT=5432
DB_NAME=toptran
@ -11,5 +11,5 @@ PORT=4000
NODE_ENV=production
# JWT
JWT_SECRET=sua_chave_secreta_aqui
JWT_REFRESH_SECRET=sua_chave_refresh_aqui
JWT_SECRET=iDgji2sbBKqmPerRHnQXFK0iHwmfNTNb5zreuetUecD
JWT_REFRESH_SECRET=pFLRKyVdDaTVdEWNebDWMQuMdbpgCnsx4p3WiVRgmuU

15
backend/.env.prod Normal file
View file

@ -0,0 +1,15 @@
# Database
DATABASE_URL=postgresql://postgres:postgres@175.15.15.90:5432/toptran
DB_USER=postgres
DB_PASSWORD=postgres
DB_HOST=175.15.15.90
DB_PORT=5432
DB_NAME=toptran
# Server
PORT=4000
NODE_ENV=production
# JWT
JWT_SECRET=iDgji2sbBKqmPerRHnQXFK0iHwmfNTNb5zreuetUecD
JWT_REFRESH_SECRET=pFLRKyVdDaTVdEWNebDWMQuMdbpgCnsx4p3WiVRgmuU

View file

@ -5,7 +5,8 @@ WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
# Instalar todas as dependências (incluindo dev) para compilar TypeScript
RUN npm ci
COPY . .