Skip to content

Commit

Permalink
Change deployment strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
balbatross committed Sep 17, 2024
1 parent 8ffcaf4 commit 6cc8a88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ jobs:
stack-name: ${{env.STACK_NAME}}
work-dir: ./packages/infrastructure/main
env:
HEXHIVE_SECRET: ${{ secrets.HEXHIVE_SECRET }}
IOT_USER: ${{ secrets.IOT_USER }}
IOT_PASS: ${{ secrets.IOT_PASS }}
IOT_EXCHANGE: ${{ secrets.IOT_EXCHANGE }}
Expand Down
4 changes: 2 additions & 2 deletions packages/app/hivecommand-backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const prisma = new PrismaClient();
dev: false,

name: 'HiveCommand',
backend_url: 'http://localhost:9010/graphql',
entrypoint: 'http://localhost:8504/hivecommand-app-frontend.js',
backend_url: process.env.BACKEND_ENTRYPOINT || 'http://localhost:9010/graphql',
entrypoint: process.env.ENTRYPOINT || 'http://localhost:8504/hivecommand-app-frontend.js',
rootServer: process.env.ROOT_SERVER || 'http://localhost:7000',
slug: 'command',

Expand Down
4 changes: 4 additions & 0 deletions packages/infrastructure/main/src/deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export const Deployment = (provider: Provider, rootServer: string, dbUrl: Output
{ name: "VERSION_SHIM", value: '1.0.10' },
{ name: 'REDIS_URL', value: redisUrl.apply(url => url) },

{ name: 'BACKEND_ENTRYPOINT', value: process.env.BACKEND_ENTRYPOINT },
{ name: 'ENTRYPOINT', value: process.env.ENTRYPOINT },
{ name: 'HEXHIVE_SECRET', value: process.env.HEXHIVE_SECRET },

{ name: "DATABASE_URL", value: all([dbUrl, dbPass]).apply(([url, pass]) => `postgresql://postgres:${pass}@${url}/hivecommand?connect_timeout=100`) },
{ name: 'REPORT_BUCKET', value: reportBucket },
{ name: "SCHEMATIC_BUCKET", value: schematicBucket }
Expand Down

0 comments on commit 6cc8a88

Please sign in to comment.