I am trying to mount a volume to my app that way it can save a screenshot for debugging purposes

2 years ago

I don't know what path I should set the screenshots to save to, or what path to mount the volume at. I'm not very experienced with volumes and would appreciate some help

11 Replies

2 years ago

n/a


2 years ago

I tried mounting it to /data and saving the screenshot to /data/error.png but now I'm getting this weird error

1266159249147560000


2 years ago

if your app is built via nixpacks then your app's work directory will be /app
if you're storing your images in a folder named images in your app's root directory then you'll want to mount the volume to /app/images


2 years ago

alr let me try


2 years ago

now its taking an unusually long amount of time to deploy


2 years ago

its been "creating containers" for 4 minutes


2 years ago

I'm getting this really weird error that I don't get locally. Im not even sure where its coming from because the print statements at the beginning of the app havent even been logged.


2 years ago

1266161542383140900


2 years ago

these errors go away completely when i remove the volume


2 years ago

I even removed any references to the volume's filepath. As soon as I attach the volume, it starts crashing.


raflymln
TRIAL

2 years ago

since it was unhandled error, try using .catch(console.error) to log the error and knows what's going on


Loading...