Is it possible Heroku is clearing the storage folder after a certain amount of time?
You may want to try commenting out this line of code to see if it helps:
https://github.com/invoiceninja/invoiceninja/blob/master/app/Http/Middleware/StartupCheck.php#L65
Would not be ideal as the build pack is pulling the invoiceninja framework dynamically from the repo and installing it on the fly. is NINJA_VERSION an .env variable? What is the format string for the version.txt be?
NINJA_VERSION is a constant
https://github.com/invoiceninja/invoiceninja/blob/master/app/Constants.php#L334
Yeah figured that out. Well will try to modify the StartupCheck to see what can be done. Thanks for the help
To be clear, I’m not suggesting this is a fix. Just that knowing if this helps will help track down the root problem.