Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sugar-cat7 committed Jan 30, 2025
1 parent eff37d1 commit c610a31
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/deploy-server-workers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:
include:
# - config: "api-gateway.wrangler.toml"
# name: "vspo-portal-api-gateway"
- config: "internal-app.wrangler.toml"
# - config: "internal-app.wrangler.toml"
# name: "vspo-portal-internal-app"
# - config: "cron.wrangler.toml"
# name: "vspo-portal-cron"
- config: "wrangler.toml"
name: "vspo-portal-internal-app"
- config: "cron.wrangler.toml"
name: "vspo-portal-cron"
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand All @@ -35,7 +37,8 @@ jobs:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
packageManager: pnpm
workingDirectory: service/server
workingDirectory: service/server/config/wrangler/internal-app
quiet: true
command: deploy --name ${{ matrix.name }} --config ${{ matrix.config }}
secrets: |
OPENAI_ORGANIZATION
Expand Down
31 changes: 31 additions & 0 deletions service/server/config/wrangler/internal-app/wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name = "vspo-portal-app"
compatibility_date = "2024-10-22"
send_metrics = false
compatibility_flags = ["nodejs_compat", "nodejs_als"]
main = "../../../cmd/server/internal/application/index.ts"
tail_consumers = [{ service = "api-tail" }]
logpush = true

[dev]
port = 3001

[[hyperdrive]]
binding = "DB"
id = "ed6ef90c0bdf4ef3bf2c8ab4b1b93b1d"
localConnectionString = "postgres://user:password@localhost:5432/vspo"

[[queues.producers]]
queue = "write-queue"
binding = "WRITE_QUEUE"

[[queues.consumers]]
queue = "write-queue"
max_batch_size = 50
max_batch_timeout = 5

[vars]
SERVICE_NAME = "vspo-portal-app"
ENVIRONMENT = "production"
LOG_TYPE = "json"
LOG_MINLEVEL = 1
LOG_HIDE_POSITION = true
31 changes: 31 additions & 0 deletions service/server/wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name = "vspo-portal-app"
compatibility_date = "2024-10-22"
send_metrics = false
compatibility_flags = ["nodejs_compat", "nodejs_als"]
main = "cmd/server/internal/application/index.ts"
tail_consumers = [{ service = "api-tail" }]
logpush = true

[dev]
port = 3001

[[hyperdrive]]
binding = "DB"
id = "ed6ef90c0bdf4ef3bf2c8ab4b1b93b1d"
localConnectionString = "postgres://user:password@localhost:5432/vspo"

[[queues.producers]]
queue = "write-queue"
binding = "WRITE_QUEUE"

[[queues.consumers]]
queue = "write-queue"
max_batch_size = 50
max_batch_timeout = 5

[vars]
SERVICE_NAME = "vspo-portal-app"
ENVIRONMENT = "production"
LOG_TYPE = "json"
LOG_MINLEVEL = 1
LOG_HIDE_POSITION = true

0 comments on commit c610a31

Please sign in to comment.