I am on way to create an expressjs snap (first time), but my application wants to write to a file. When I try that it’s giving a read only file system error.
make your app read the environment variable $SNAP_DATA (if it runs as a daemon) or $SNAP_USER_DATA (if it is started by a user) and adjust your code to write to the dir that variable gives you …
also when posting yaml, please put three backticks ``` above and below the pasted code so the indendation and formatting persists in the forum post
i havent used express.js a lot, in nodejs you’d do smething like writable_path = process.env.SNAP_DATA in your code and then use writable_path as target directory
I have been trying to build a snap for NestJS backend as a daemon, What is in your package.json the command bin/sample-express just launch the server entry point?