explit/start.sh
Nicola Zambello 5502a26a6c
Some checks failed
Docker CI / release (push) Has been cancelled
update for publishing and docker setup
2024-06-15 17:39:17 +03:00

20 lines
550 B
Bash

#!/bin/sh
set -ex
# This file is how Fly starts the server (configured in fly.toml). Before starting
# the server though, we need to run any prisma migrations that haven't yet been
# run, which is why this file exists in the first place.
# Learn more: https://community.fly.io/t/sqlite-not-getting-setup-properly/4386
# allocate swap space
# 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
yarn start