main
All checks were successful
Backend Deploy 🚀 / build-and-deploy (push) Successful in 2m15s

This commit is contained in:
2026-03-22 23:19:44 +03:00
parent e0d41d0386
commit 1eec1e4033
2 changed files with 8 additions and 12 deletions

View File

@@ -14,23 +14,19 @@ jobs:
uses: actions/checkout@v3
- name: Docker Build
# Dockerfile'ı kullanarak imajı oluşturuyoruz
run: docker build -t backend-proje:latest .
run: docker build -t backend-haruncan-studio:latest .
- name: Eski Konteyneri Sil
# İlk seferde hata vermemesi için '|| true' ekledik
run: docker rm -f backend-container || true
run: docker rm -f backend-haruncan-studio-container || true
- name: Yeni Versiyonu Başlat
# Secrets kısmından şifreleri alıp konteynere veriyoruz
run: |
docker run -d \
--name backend-container \
--name backend-haruncan-studio-container \
--restart always \
--network gitea-server_gitea \
-p 1501:3000 \
-p 1809:3000 \
-e DATABASE_URL='${{ secrets.DATABASE_URL }}' \
-e JWT_SECRET='${{ secrets.JWT_SECRET }}' \
-e REDIS_HOST='${{ secrets.REDIS_HOST }}' \
-e REDIS_PORT='6379' \
backend-proje:latest
-e NODE_ENV='production' \
backend-haruncan-studio:latest

View File

@@ -56,9 +56,9 @@ async function bootstrap() {
// Swagger setup
const swaggerConfig = new DocumentBuilder()
.setTitle('TypeScript Boilerplate API')
.setTitle('HarunCAN Studio API')
.setDescription(
'Senior-level NestJS backend boilerplate with generic CRUD, authentication, i18n, and Redis caching',
'HarunCAN Studio backend API - NestJS with authentication, i18n, and PostgreSQL',
)
.setVersion('1.0')
.addBearerAuth()