From 7e9528912391d85145efb4f9414ab80181095d67 Mon Sep 17 00:00:00 2001 From: Kang-Eunsu Date: Fri, 3 May 2024 10:51:58 +0000 Subject: [PATCH] fix(infra): check missing variables to change from dev --- .github/workflows/cd-stage.yml | 2 +- .github/workflows/reset-seed.yml | 2 +- apps/backend/package.json | 1 - apps/grafana-logs/promtail/promtail-config.yml | 2 +- scripts/setup.sh | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd-stage.yml b/.github/workflows/cd-stage.yml index 4e56e586fb..9f783ac18e 100644 --- a/.github/workflows/cd-stage.yml +++ b/.github/workflows/cd-stage.yml @@ -1,4 +1,4 @@ -name: CD - Development +name: CD - Stage on: push: diff --git a/.github/workflows/reset-seed.yml b/.github/workflows/reset-seed.yml index 39529fdf99..58e83fe212 100644 --- a/.github/workflows/reset-seed.yml +++ b/.github/workflows/reset-seed.yml @@ -1,4 +1,4 @@ -name: Reset Seed (Development) +name: Reset Seed (Stage) on: workflow_dispatch diff --git a/apps/backend/package.json b/apps/backend/package.json index 720943d4f7..1d25c6fa4f 100644 --- a/apps/backend/package.json +++ b/apps/backend/package.json @@ -5,7 +5,6 @@ "build": "nest build", "start": "nest start", "start:dev": "nest start --watch", - "start:stage": "nest start --watch", "start:debug": "nest start --debug --watch", "start:prod": "node dist/apps/backend/main", "start:testdb": "cross-env DATABASE_URL=$TEST_DATABASE_URL nest start", diff --git a/apps/grafana-logs/promtail/promtail-config.yml b/apps/grafana-logs/promtail/promtail-config.yml index fa36da2576..1cf713a085 100644 --- a/apps/grafana-logs/promtail/promtail-config.yml +++ b/apps/grafana-logs/promtail/promtail-config.yml @@ -6,7 +6,7 @@ positions: clients: - url: http://${LOKI_SERVER_URL}/loki/api/v1/push scrape_configs: - - job_name: codedang-dev + - job_name: codedang-stage docker_sd_configs: - host: unix:///var/run/docker.sock refresh_interval: 5s diff --git a/scripts/setup.sh b/scripts/setup.sh index 027449f172..5d71dd645a 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -13,7 +13,7 @@ BASEDIR=$(dirname $(dirname $(realpath $0))) cd $BASEDIR -# Write .env file from .env.development +# Write .env file from .env.stage if [ -f .env ] then rm .env