diff --git a/backend/.env.example b/backend/.env.example index 15efb69..13e322e 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -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 diff --git a/backend/.env.prod b/backend/.env.prod new file mode 100644 index 0000000..13e322e --- /dev/null +++ b/backend/.env.prod @@ -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 diff --git a/backend/Dockerfile b/backend/Dockerfile index e9a0da8..ba0c06f 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -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 . .