diff --git a/fly.toml b/fly.toml index 7ed63121..eaf9bf2b 100644 --- a/fly.toml +++ b/fly.toml @@ -3,6 +3,7 @@ app = "blues-stack-template" kill_signal = "SIGINT" kill_timeout = 5 processes = [] +swap_size_mb = 512 [env] PORT = "8080" @@ -13,7 +14,7 @@ processes = [] path = "/metrics" [deploy] - release_command = "bash ./scripts/migrate.sh" + release_command = "npx prisma migrate deploy" [experimental] allowed_public_ports = [] diff --git a/scripts/migrate.sh b/scripts/migrate.sh deleted file mode 100755 index 8f49d8b0..00000000 --- a/scripts/migrate.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -fallocate -l 512M /swapfile -chmod 0600 /swapfile -mkswap /swapfile -echo 10 >/proc/sys/vm/swappiness -swapon /swapfile -echo 1 >/proc/sys/vm/overcommit_memory -npx prisma migrate deploy