diff --git a/heat-stack/other/litefs.yml b/heat-stack/other/litefs.yml index 63cc550b..6aad7b85 100644 --- a/heat-stack/other/litefs.yml +++ b/heat-stack/other/litefs.yml @@ -29,8 +29,6 @@ lease: key: 'epic-stack-litefs/${FLY_APP_NAME}' exec: - - cmd: node ./other/setup-swap.js - - cmd: npx prisma migrate deploy if-candidate: true diff --git a/heat-stack/other/setup-swap.js b/heat-stack/other/setup-swap.js deleted file mode 100644 index 607df56f..00000000 --- a/heat-stack/other/setup-swap.js +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env node - -import { writeFile } from 'node:fs/promises' -import { $ } from 'execa' - -console.log('setting up swapfile...') -await $`fallocate -l 512M /swapfile` -await $`chmod 0600 /swapfile` -await $`mkswap /swapfile` -await writeFile('/proc/sys/vm/swappiness', '10') -await $`swapon /swapfile` -await writeFile('/proc/sys/vm/overcommit_memory', '1') -console.log('swapfile setup complete')