tpmjs/apps/railway-executor/start.sh
Ajax Davis 44606e2b78 fix(executor): fix volume permissions on startup
Adds startup script that fixes /data volume ownership before starting Deno.
This resolves permission errors after cache clear operations.
2026-01-15 09:25:00 +10:00

7 lines
255 B
Bash

#!/bin/bash
# Fix permissions on the Deno cache directory (runs as root)
mkdir -p /data
chown -R deno:deno /data
# 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"