Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(monitoring): add scheduler functionality #1383

Merged
5 changes: 5 additions & 0 deletions .aws/deploy/support-task-definition.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@
"name": "REDIRECT_URI",
"valueFrom": "PROD_REDIRECT_URI"
},
{
"name": "REDIRECTION_REPO_GITHUB_TOKEN",
"valueFrom": "PROD_REDIRECTION_REPO_GITHUB_TOKEN"
},
{ "name": "REDIS_HOST", "valueFrom": "PROD_REDIS_HOST" },
{
"name": "SESSION_SECRET",
"valueFrom": "PROD_SESSION_SECRET"
Expand Down
5 changes: 5 additions & 0 deletions .aws/deploy/support-task-definition.staging.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@
"name": "REDIRECT_URI",
"valueFrom": "STAGING_REDIRECT_URI"
},
{
"name": "REDIRECTION_REPO_GITHUB_TOKEN",
"valueFrom": "STAGING_REDIRECTION_REPO_GITHUB_TOKEN"
},
{ "name": "REDIS_HOST", "valueFrom": "STAGING_REDIS_HOST" },
{
"name": "SESSION_SECRET",
"valueFrom": "STAGING_SESSION_SECRET"
Expand Down
4 changes: 3 additions & 1 deletion .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,6 @@ export SGID_REDIRECT_URI="http://localhost:8081/v2/auth/sgid/auth-redirect"
# GrowthBook
export GROWTHBOOK_CLIENT_KEY="some random key"

export KEYCDN_API_KEY="secret"
export KEYCDN_API_KEY="secret"

export REDIS_HOST="redis"
5 changes: 0 additions & 5 deletions common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {
Reviewer,
ReviewRequestView,
} from "@database/models"
import MonitoringService from "@root/monitoring"
import AuditLogsService from "@root/services/admin/AuditLogsService"
import RepoManagementService from "@root/services/admin/RepoManagementService"
import GitFileCommitService from "@root/services/db/GitFileCommitService"
Expand Down Expand Up @@ -249,7 +248,3 @@ export const auditLogsService = new AuditLogsService({
sitesService,
usersService,
})

export const monitoringService = new MonitoringService({
launchesService,
})
9 changes: 9 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
version: "3"
services:
redis:
image: redis
container_name: isomercms-redis
ports:
- 6379:6379
support:
build:
dockerfile: ./support/Dockerfile
ports:
- "8082:8082"
depends_on:
- postgres
- redis
env_file:
- .env
volumes:
Expand All @@ -18,6 +26,7 @@ services:
dockerfile: Dockerfile
depends_on:
- postgres
- redis
ports:
- "8081:8081"
env_file:
Expand Down
Loading
Loading