Skip to content

Commit 5cfca60

Browse files
committed
tmp issue
1 parent 812a76a commit 5cfca60

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

appStartUp.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#!/bin/bash
22
set -eo pipefail
33

4-
# Start the app
5-
pnpm start
4+
# Force temp files to /tmp (writable even on read-only root filesystem)
5+
export TMPDIR=/tmp
6+
export TEMP=/tmp
7+
export TMP=/tmp
8+
9+
# Disable Mastra Studio (it tries to bundle/write files at runtime)
10+
export MASTRA_STUDIO_DISABLED=true
11+
12+
# Start the app - use pre-built output directly to avoid runtime bundling
13+
node /app/.mastra/output/index.mjs

0 commit comments

Comments
 (0)