Skip to content

Commit

Permalink
🐛 Fix Backend Deployment Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
joyliu-q committed May 13, 2022
1 parent 547abf7 commit 3560bd3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions k8s/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class MyChart extends PennLabsChart {
new DjangoApplication(this, 'celery', {
deployment: {
image: backendImage,
secret: secret,
secret,
cmd: ['celery', 'worker', '-A', 'PennCourses', '-Q', 'alerts,celery', '-linfo'],
},
djangoSettingsModule: 'PennCourses.settings.production',
Expand All @@ -25,10 +25,8 @@ export class MyChart extends PennLabsChart {
new DjangoApplication(this, 'backend', {
deployment: {
image: backendImage,
secret: secret,
cmd: ['celery', 'worker', '-A', 'PennCourses', '-Q', 'alerts,celery', '-linfo'],
secret,
replicas: 3,
env: [{ name: 'PORT', value: '80' }],
},
djangoSettingsModule: 'PennCourses.settings.production',
ingressProps: {
Expand Down Expand Up @@ -70,14 +68,14 @@ export class MyChart extends PennLabsChart {
new CronJob(this, 'load-courses', {
schedule: cronTime.everyDayAt(3),
image: backendImage,
secret: secret,
secret,
cmd: ['python', 'manage.py', 'registrarimport'],
});

new CronJob(this, 'report-stats', {
schedule: cronTime.everyDayAt(20),
image: backendImage,
secret: secret,
secret,
cmd: ['python', 'manage.py', 'alertstats', '1', '--slack'],
});

Expand Down

0 comments on commit 3560bd3

Please sign in to comment.