Skip to content

Commit

Permalink
fix: move data center deployments closer to US-East
Browse files Browse the repository at this point in the history
  • Loading branch information
ericzorn93 committed Jan 3, 2025
1 parent 56a232c commit 232e053
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 232e053

Please sign in to comment.