Deploy prd
This commit is contained in:
parent
5538b7340d
commit
2ecccc2e29
3 changed files with 23 additions and 7 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
# Database
|
# Database
|
||||||
DATABASE_URL=postgresql://user:password@localhost:5432/toptran
|
DATABASE_URL=postgresql://postgres:postgres@175.15.15.90:5432/toptran
|
||||||
DB_USER=user
|
DB_USER=postgres
|
||||||
DB_PASSWORD=password
|
DB_PASSWORD=postgres
|
||||||
DB_HOST=localhost
|
DB_HOST=175.15.15.90
|
||||||
DB_PORT=5432
|
DB_PORT=5432
|
||||||
DB_NAME=toptran
|
DB_NAME=toptran
|
||||||
|
|
||||||
|
|
@ -11,5 +11,5 @@ PORT=4000
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
|
|
||||||
# JWT
|
# JWT
|
||||||
JWT_SECRET=sua_chave_secreta_aqui
|
JWT_SECRET=iDgji2sbBKqmPerRHnQXFK0iHwmfNTNb5zreuetUecD
|
||||||
JWT_REFRESH_SECRET=sua_chave_refresh_aqui
|
JWT_REFRESH_SECRET=pFLRKyVdDaTVdEWNebDWMQuMdbpgCnsx4p3WiVRgmuU
|
||||||
|
|
|
||||||
15
backend/.env.prod
Normal file
15
backend/.env.prod
Normal 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
|
||||||
|
|
@ -5,7 +5,8 @@ WORKDIR /app
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
RUN npm ci --only=production
|
# Instalar todas as dependências (incluindo dev) para compilar TypeScript
|
||||||
|
RUN npm ci
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue