tpmjs/apps/railway-executor/start.sh
Ajax Davis cae05f1504 fix(executor): use ephemeral cache dir instead of volume
Switch from /data volume to /tmp/deno-cache to avoid persistent permission issues.
2026-01-15 09:30:02 +10:00

7 lines
284 B
Bash

#!/bin/bash
# Create Deno cache directory with correct permissions (runs as root)
mkdir -p /tmp/deno-cache
chown -R deno:deno /tmp/deno-cache
# Switch to deno user and run the server
exec su deno -c "deno run --allow-net --allow-env --allow-read --allow-write --allow-run server.ts"