LiteFS with more than one ProcessGroup

Your best bet is to either set the exec.cmd with an environment variable or to use separate litefs.yml configs. In your process group, you can define small wrapper scripts and set the environment variables there:

[processes]
app = "app.sh"
work = "work.sh"

and then define your variable in there:

#!/bin/sh
export LITEFS_EXEC_CMD = "npm run start"
exec litefs mount

and then use that variable in your litefs.yml:

exec:
  - cmd: "${LITEFS_EXEC_CMD}"
1 Like