Skip to content

Commit

Permalink
bring back wsgi
Browse files Browse the repository at this point in the history
  • Loading branch information
rohangpta committed Aug 24, 2023
1 parent eea9f61 commit f2b2adf
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions k8s/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ export class MyChart extends PennLabsChart {

new RedisApplication(this, 'redis', {});

new DjangoApplication(this, 'django-asgi', {
new DjangoApplication(this, 'django-wsgi', {
deployment: {
image: backendImage,
cmd: ['/usr/local/bin/asgi-run'],
replicas: 2,
secret: clubsSecret,
env: [
Expand All @@ -32,6 +31,20 @@ export class MyChart extends PennLabsChart {
domains: [{ host: clubsDomain, paths: ['/api'] }],
});

new DjangoApplication(this, 'django-asgi', {
deployment: {
image: backendImage,
cmd: ['/usr/local/bin/asgi-run'],
replicas: 1,
secret: clubsSecret,
env: [
{ name: 'REDIS_HOST', value: 'penn-clubs-redis' },
],
},
djangoSettingsModule: 'pennclubs.settings.production',
domains: [{ host: clubsDomain, paths: ['/api/ws'] }],
});

new ReactApplication(this, 'react', {
deployment: {
image: frontendImage,
Expand Down

0 comments on commit f2b2adf

Please sign in to comment.