Skip to content

Commit

Permalink
Merge pull request #114 from Trycatch-tv/dev
Browse files Browse the repository at this point in the history
.
  • Loading branch information
judlup authored Jun 2, 2024
2 parents 58187fd + cce7fb0 commit 261a402
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
SSHPASS: ${{ secrets.EC2_KEY }}
run: |
sshpass -e ssh -o StrictHostKeyChecking=no ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} << 'EOF'
export NODE_ENV=prod
export NODE_ENV=dev
# Clonar el repositorio en una ruta específica
git clone https://github.com/Trycatch-tv/ValidadorBootcamp-backend /home/${{ secrets.EC2_USER }}/app
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
- DATABASE_NAME=validador_bootcamps
- FILE_SERVICE_URL=http://localhost:3000/files
- REVIEW_SERVICE_URL=http://localhost:3000/reviews
- NODE_ENV=prod
- NODE_ENV=dev
networks:
- vnet-backend
depends_on:
Expand Down
4 changes: 3 additions & 1 deletion src/modules/typeorm/db.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ import { EnvironmentConfigModule } from '../environment-config/environment-confi
password: environmentConfigService.DATABASE_PASSWORD,
database: environmentConfigService.DATABASE_NAME,
autoLoadEntities: true,
synchronize: true,
synchronize:
environmentConfigService.NODE_ENV ===
('dev' satisfies EnvironmentConfig['NODE_ENV']),
} as TypeOrmModuleOptions;
},
}),
Expand Down

0 comments on commit 261a402

Please sign in to comment.