Skip to content

Commit

Permalink
FIX: Moving Data Center Deployments (#31)
Browse files Browse the repository at this point in the history
* feat: adding graphql service for accounts

* feat: adding support for accounts-graphql schema

* fix: scale machines to 0

* fix: fly.toml

* fix: internal port 8080 in production

* fix: change back to port 3000

* fix: move graph into internal

* feat: code generation for gql

* fix: models

* fix: models

* feat: resolvers are fixed

* feat: updating resolver path

* feat: move schemas into their own directory

* fix: moving models to a package

* feat: adding proper generated files package

* feat: adding apollo router locally for dev

* feat: logged todos resolver is called

* fix: empty resolvers

* fix: moving schema configs to dev

* fix: moving schema configs to dev

* feat: adding apolo router

* feat: super graph dev and prod setup

* feat: remove the custom metrics

* fix: deployment for apollo router

* fix: delete older files

* feat: updating dockerfile for router

* fix: remove homepage

* fix: disable homepage

* fix: disable homepage

* fix: router config

* fix: config

* fix: apollo router config

* fix: dockerfile

* fix: dockerfile slashes

* fix: apollo router prod

* fix: prod

* fix: http service for accounts graphql

* fix: revert back to public prod url

* fix: graphql schema

* feat: account model generation

* feat: update prod graph

* fix: use internal routing

* feat: adding accounts internal

* feat: hide accounts-graphql behind VPC

* feat: graphql service generator

* feat: cleanup graphql files

* fix: file generation

* fix: further cleanup

* fix: remove unwanted package in go workspace

* feat: calling accounts api from accounts graph

* feat: updating supergraph schema with prod

* refactor: change name to account_service handler

* feat: adding uuid validation for account

* fix: models to query by commonID

* feat: abstracting lru cache and other caches to their own package

* fix: move data center deployments closer to US-East
  • Loading branch information
ericzorn93 authored Jan 3, 2025
1 parent cb8e7a5 commit f720f2f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion apps/services/accounts-api/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"options": {
"commands": [
"flyctl deploy -c apps/services/accounts-api/fly.toml -y",
"flyctl scale count 1 -r ewr -c apps/services/accounts-api/fly.toml -y",
"flyctl scale count 1 -r iad -c apps/services/accounts-api/fly.toml -y",
"flyctl scale count 0 -r ewr -c apps/services/accounts-api/fly.toml -y",
"flyctl scale count 0 -r lax -c apps/services/accounts-api/fly.toml -y",
"flyctl scale count 0 -r ord -c apps/services/accounts-api/fly.toml -y"
]
Expand Down
3 changes: 2 additions & 1 deletion apps/services/accounts-graphql/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"options": {
"commands": [
"flyctl deploy -c apps/services/accounts-graphql/fly.toml -y",
"flyctl scale count 1 -r ewr -c apps/services/accounts-graphql/fly.toml -y",
"flyctl scale count 1 -r iad -c apps/services/accounts-graphql/fly.toml -y",
"flyctl scale count 0 -r ewr -c apps/services/accounts-graphql/fly.toml -y",
"flyctl scale count 0 -r lax -c apps/services/accounts-graphql/fly.toml -y",
"flyctl scale count 0 -r ord -c apps/services/accounts-graphql/fly.toml -y"
]
Expand Down
3 changes: 2 additions & 1 deletion apps/services/accounts-worker/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"options": {
"commands": [
"flyctl deploy -c apps/services/accounts-worker/fly.toml -y",
"flyctl scale count 1 -r ewr -c apps/services/accounts-worker/fly.toml -y",
"flyctl scale count 1 -r iad -c apps/services/accounts-worker/fly.toml -y",
"flyctl scale count 0 -r ewr -c apps/services/accounts-worker/fly.toml -y",
"flyctl scale count 0 -r lax -c apps/services/accounts-worker/fly.toml -y",
"flyctl scale count 0 -r ord -c apps/services/accounts-worker/fly.toml -y"
]
Expand Down
3 changes: 2 additions & 1 deletion apps/services/apollo-router/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"options": {
"commands": [
"flyctl deploy -c apps/services/apollo-router/fly.toml -y",
"flyctl scale count 1 -r ewr -c apps/services/apollo-router/fly.toml -y",
"flyctl scale count 1 -r iad -c apps/services/apollo-router/fly.toml -y",
"flyctl scale count 0 -r ewr -c apps/services/apollo-router/fly.toml -y",
"flyctl scale count 0 -r lax -c apps/services/apollo-router/fly.toml -y",
"flyctl scale count 0 -r ord -c apps/services/apollo-router/fly.toml -y"
]
Expand Down
3 changes: 2 additions & 1 deletion apps/services/inbound-webhooks-api/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"options": {
"commands": [
"flyctl deploy -c apps/services/inbound-webhooks-api/fly.toml -y",
"flyctl scale count 1 -r ewr -c apps/services/inbound-webhooks-api/fly.toml -y",
"flyctl scale count 1 -r iad -c apps/services/inbound-webhooks-api/fly.toml -y",
"flyctl scale count 0 -r ewr -c apps/services/inbound-webhooks-api/fly.toml -y",
"flyctl scale count 0 -r lax -c apps/services/inbound-webhooks-api/fly.toml -y",
"flyctl scale count 0 -r ord -c apps/services/inbound-webhooks-api/fly.toml -y"
]
Expand Down
7 changes: 4 additions & 3 deletions tools/backend-service/src/generators/service-gen/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ export async function createBackendServiceGenerator(
options: {
commands: [
`flyctl deploy -c apps/services/${options.serviceName}/fly.toml -y`,
`flyctl scale count 1 -r ewr -c apps/services/${options.serviceName}/fly.toml -y`,
`flyctl scale count 1 -r lax -c apps/services/${options.serviceName}/fly.toml -y`,
`flyctl scale count 1 -r ord -c apps/services/${options.serviceName}/fly.toml -y`,
`flyctl scale count 1 -r iad -c apps/services/${options.serviceName}/fly.toml -y`,
`flyctl scale count 0 -r ewr -c apps/services/${options.serviceName}/fly.toml -y`,
`flyctl scale count 0 -r lax -c apps/services/${options.serviceName}/fly.toml -y`,
`flyctl scale count 0 -r ord -c apps/services/${options.serviceName}/fly.toml -y`,
],
},
},
Expand Down

0 comments on commit f720f2f

Please sign in to comment.