Skip to content

Commit

Permalink
Merge pull request #3951 from dev-hato/add_memory
Browse files Browse the repository at this point in the history
fly.io: アプリのメモリ容量をfly.tomlに記述する
  • Loading branch information
massongit authored May 19, 2024
2 parents 9b84f7f + 5da6935 commit 3ed6c42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions fly.template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ primary_region = 'nrt'

[[vm]]
size = 'shared-cpu-1x'
memory = '256'
2 changes: 1 addition & 1 deletion flyio_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ POSTGRES_APP_NAME="${APP_NAME}-db"
fly postgres create --name="$POSTGRES_APP_NAME" --region="$(yq '.primary_region' fly.toml)" --initial-cluster-size=1 \
--vm-size="$(yq '.vm.[0].size' fly.toml)" --volume-size=1
fly postgres attach "$POSTGRES_APP_NAME"
fly deploy --vm-memory=256
fly deploy

0 comments on commit 3ed6c42

Please sign in to comment.