work-timer/start.sh

20 lines
556 B
Bash
Raw Permalink Normal View History

2023-06-22 13:11:03 +02:00
#!/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
2025-04-08 17:18:32 +02:00
npx prisma@3.9.1 migrate deploy
2023-06-22 13:11:03 +02:00
yarn start