I want to create sketch-files dynamically and make them downloadable. I want to use sketch-constructor (here is an example that is working on my computer).
The code runs on heroku and the is even the console.log() of the fulfilled promise but i can't see neither the directory nor the sketchfile itself.
Thanks for your help!
The Heroku filesystem is ephemeral - that means that any changes to the filesystem whilst the dyno is running only last until that dyno is shut down or restarted. Each dyno boots with a clean copy of the filesystem from the most recent deploy.
In addition, under normal operations dynos will restart every day in a process known as "Cycling".
These two facts mean that the filesystem on Heroku is not suitable for persistent storage of data. In cases where you need to store file, you can use a dedicated file storage service such as AWS S3
However, the file will be created before it would be deleted, to confirm /check if the file on the file system, run the command .
You can navigate the folder structure of the app