zdravko/deploy/entrypoint.sh
2024-02-17 20:19:18 +01:00

14 lines
257 B
Bash
Executable file

#!/bin/sh
PROCESS=${FLY_PROCESS_GROUP}
if [ "$PROCESS" = "server" ]; then
echo "Starting server process"
exec litefs mount -- $@
elif [ "$PROCESS" = "worker" ]; then
echo "Starting worker process"
exec $@
else
echo "Unknown process"
exit 1
fi